.teams-page { padding: 1.5rem 0; max-width: 1200px; margin: 0 auto; } /* Header */ .teams-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; } .teams-header__content { display: flex; align-items: center; gap: 1.5rem; } .teams-header__content h1 { margin: 0; font-size: 1.5rem; font-weight: 600; } .teams-header__stats { display: flex; align-items: center; gap: 1rem; color: var(--color-text-muted); font-size: 0.875rem; } .teams-header__stats span { display: flex; align-items: center; gap: 0.375rem; } .teams-header__stats .stat-value { font-weight: 600; color: var(--color-text); } /* Search */ .teams-search { position: relative; margin-bottom: 1.5rem; } .teams-search__icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; } .teams-search__input { width: 100%; padding: 0.625rem 2.5rem 0.625rem 2.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text); font-size: 0.875rem; } .teams-search__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-alpha, rgba(59, 130, 246, 0.1)); } .teams-search__input::placeholder { color: var(--color-text-muted); } .teams-search__clear { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0.375rem; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); } .teams-search__clear:hover { color: var(--color-text); background: var(--color-bg-secondary); } /* Error */ .teams-error { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; margin-bottom: 1rem; background: var(--color-error-bg, #fef2f2); border: 1px solid var(--color-error-border, #fecaca); border-radius: var(--radius-md); color: var(--color-error, #dc2626); font-size: 0.875rem; } .teams-error__dismiss { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; padding: 0; line-height: 1; } /* Loading */ .teams-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 2rem; color: var(--color-text-muted); } .teams-loading__spinner { width: 32px; height: 32px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: teams-spin 0.8s linear infinite; } @keyframes teams-spin { to { transform: rotate(360deg); } } /* Empty State */ .teams-empty-state { text-align: center; padding: 4rem 2rem; background: var(--color-bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--color-border); } .teams-empty-icon { color: var(--color-text-muted); margin-bottom: 1rem; } .teams-empty-state h2 { margin: 0 0 0.5rem; font-size: 1.25rem; } .teams-empty-state p { margin: 0 0 1.5rem; color: var(--color-text-muted); } /* Table */ .teams-table-container { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; } .teams-table { width: 100%; border-collapse: collapse; } .teams-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); background: var(--color-bg-secondary); border-bottom: 2px solid var(--color-border); border-right: 1px solid var(--color-border); } .teams-table th:last-child { border-right: none; } .teams-table td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border); vertical-align: middle; } .teams-table td:last-child { border-right: none; } .team-row { cursor: pointer; transition: background 0.1s ease; } .team-row:hover { background: var(--color-bg-secondary); } .team-name-cell { display: flex; flex-direction: column; gap: 0.125rem; } .team-name-link { font-weight: 500; color: var(--color-text); text-decoration: none; } .team-name-link:hover { color: var(--color-primary); } .team-slug { font-size: 0.8125rem; color: var(--color-text-muted); } .team-description-cell { color: var(--color-text-secondary); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .text-muted { color: var(--color-text-muted); } /* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; } .modal-content { background: var(--color-bg); border-radius: var(--radius-lg); width: 100%; max-width: 480px; box-shadow: var(--shadow-xl); overflow: hidden; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); } .modal-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; } .modal-close { background: none; border: none; padding: 0.25rem; cursor: pointer; color: var(--color-text-muted); display: flex; border-radius: var(--radius-sm); } .modal-close:hover { color: var(--color-text); background: var(--color-bg-secondary); } .modal-content form { padding: 1.5rem; } /* Form */ .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.875rem; } .form-group .optional { font-weight: 400; color: var(--color-text-muted); } .form-group input, .form-group textarea { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.875rem; background: var(--color-bg); color: var(--color-text); } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-alpha, rgba(59, 130, 246, 0.1)); } .input-with-prefix { display: flex; align-items: stretch; } .input-prefix { display: flex; align-items: center; padding: 0 0.75rem; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); color: var(--color-text-muted); font-size: 0.875rem; } .input-with-prefix input { border-radius: 0 var(--radius-md) var(--radius-md) 0; } .form-hint { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--color-text-muted); } .form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border); } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: none; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; } .btn:disabled { opacity: 0.6; cursor: not-allowed; } .btn-primary { background: var(--color-primary); color: white; } .btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); } .btn-secondary { background: var(--color-bg-secondary); color: var(--color-text); border: 1px solid var(--color-border); } .btn-secondary:hover:not(:disabled) { background: var(--color-bg-tertiary); } /* Responsive */ @media (max-width: 640px) { .teams-header { flex-direction: column; align-items: stretch; } .teams-header .btn { justify-content: center; } .teams-stats { justify-content: space-around; } .teams-table-container { overflow-x: auto; } .teams-table { min-width: 600px; } }