/* --- Teams Page Custom Styles --- */
.teams-page {
    padding: 32px;
}
.teams-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.teams-search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}
.search-input, .search-select {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus, .search-select:focus {
    border-color: #2d2d2d;
}
.search-btn {
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-btn:hover {
    background-color: #000;
}
.teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.team-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 20px 18px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #e5e7eb;
}
.team-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #bbb;
}
.team-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.team-meta {
    font-size: 13px;
    color: #666;
}
.no-teams, .loading, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 16px;
}
.teams-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 28px 24px;
    min-height: 320px;
    border: 1px solid #e5e7eb;
}
.panel-empty {
    color: #999;
    text-align: center;
    font-size: 16px;
    padding: 60px 0;
}
.team-detail h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}
.team-detail p {
    margin: 4px 0;
    font-size: 15px;
}
.team-actions {
    margin: 18px 0 10px 0;
    display: flex;
    gap: 10px;
}
.team-actions button {
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.team-actions button:hover {
    background: #333333;
}
.members-list {
    margin-top: 18px;
}
.member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.member-name {
    font-weight: 500;
    color: #222;
}
.member-meta {
    color: #888;
    font-size: 13px;
}
.member-actions button {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.member-actions button:hover {
    background: #b91c1c;
}
.applications-list, .team-stats {
    margin-top: 18px;
}
.app-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.app-user {
    font-weight: 500;
    color: #222;
}
.app-message {
    color: #555;
    font-size: 14px;
    margin: 4px 0 8px 0;
}
.app-actions button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s;
}
.app-actions button:hover {
    background: #1d4ed8;
}
.message-composer {
    margin-top: 18px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}
.message-composer textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    font-size: 14px;
}
.message-composer input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 8px;
    font-size: 14px;
}
.message-composer button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.message-composer button:hover {
    background: #000;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E5E7EB;
}

/* Logo container */
.logo {
    padding: 20px;
    margin-bottom: 20px;
}

.logo img {
    height: 35px;
    width: auto;
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #F3F4F6;
    color: #111;
}

.nav-item.active {
    background-color: #1A1A1A;
    color: white;
    font-weight: 500;
}

/* Sign Out Button */
.sign-out {
    margin: 20px 24px;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.sign-out:hover {
    color: #DC2626;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 200px;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    padding: 48px 32px 32px 32px;
    box-sizing: border-box;
    width: calc(100vw - 200px);
    max-width: 100vw;
}

/* Content Area */
.content {
    padding: 32px;
}

/* Dashboard Title */
.dashboard h1 {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
}

/* Dashboard Title Area */
.dashboard-header {
    margin-bottom: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 32px;
    width: 100%;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #E5E7EB;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

/* Page Title */
.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 0;
    padding: 20px 32px;
    border-bottom: 1px solid #E5E7EB;
    background-color: #fff;
}

/* Notifications */
.notifications {
    position: relative;
}

.notification-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: #DC2626;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.active {
        width: 200px;
        transform: translateX(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Only center the page for auth (login/register) pages */
body.auth-page {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.container {
    background: white;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
}

.logo {
    margin-bottom: 24px;
}

.logo img {
    width: 120px;
    height: auto;
}

h1 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
}

.subtitle {
    font-family: 'Red Hat Display', sans-serif;
    color: #666;
    font-size: 15px;
    margin-bottom: 60px;
    font-weight: 400;
}

.form-container {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    font-family: 'Red Hat Display', sans-serif;
    display: block;
    font-size: 15px;
    color: #000;
    margin-bottom: 8px;
    font-weight: 300;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #1F1F1F;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
    color: #000;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    padding-right: 50px;
}

.date-input-container {
    position: relative;
}

.date-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

input[type="date"] {
    padding-right: 50px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000;
    margin-top: 3px;
}

.checkbox-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

.checkbox-text a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: #000;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.login-text {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 300;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-text a {
    color: #007bff;
    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}

.message {
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }

    body {
        padding: 0;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select {
        padding: 12px 14px;
    }

    .checkbox-row {
        margin: 20px 0;
    }

    .submit-btn {
        padding: 12px;
    }
}

/* Athletes Page Styles */
.athletes-page {
    padding: 32px;
}

.athletes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.athletes-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.athletes-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #2d2d2d;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
}

/* Add Player Button */
.add-player-btn {
    background-color: #1a1a1a;
    color: white;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-player-btn:hover {
    background-color: #000;
}

/* Athletes Grid */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* Athlete Card */
.athlete-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.athlete-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.athlete-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #6b7280;
}

.athlete-info {
    text-align: center;
    margin-bottom: 16px;
}

.athlete-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.athlete-date {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.athlete-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.info-btn, .exercise-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.info-btn {
    background-color: #1a1a1a;
    color: white;
}

.info-btn:hover {
    background-color: #000;
}

.exercise-btn {
    background-color: white;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

.exercise-btn:hover {
    background-color: #f3f4f6;
}

/* No Athletes Message */
.no-athletes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: 12px;
    color: #6b7280;
}

/* --- Layout Polish for Full-Width Modern Look --- */
body {
    background-color: #f8f9fa;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.18s ease;
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

.main-content {
    flex: 1;
    margin-left: 200px;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    padding: 48px 32px 32px 32px;
    box-sizing: border-box;
    width: calc(100vw - 200px);
    max-width: 100vw;
}

.profile-page,
.dashboard {
    padding: 32px 0 0 0;
    width: 100%;
    margin: 0;
    max-width: none;
}

.profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 32px;
    width: 100%;
    max-width: none;
}

.profile-content {
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    padding: 30px 24px;
    width: 100%;
}

.profile-info-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    height: fit-content;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    width: 100%;
}

.dashboard-header {
    margin-bottom: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 32px;
    width: 100%;
}
/* --- End Layout Polish --- */