/* Athinais Academy Plugin Styles */

.athinais-registration-form,
.athinais-login-form,
.athinais-athlete-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.athinais-athlete-form {
    max-width: 900px;
}

.athinais-registration-form h2,
.athinais-login-form h2,
.athinais-athlete-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

.required-checkbox label {
    font-weight: 600;
}

.declaration-text {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    color: #000 !important;
}

.declaration-text h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #000 !important;
    font-size: 16px;
    font-weight: 600;
}

.declaration-text h5:first-child {
    margin-top: 0;
}

.declaration-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #000 !important;
    text-align: justify;
}

.declaration-text p:last-child {
    margin-bottom: 0;
}

.declaration-text strong {
    color: #000 !important;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #005a87;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-messages {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-messages.show {
    display: block;
}

.form-messages.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.form-messages.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.form-messages ul {
    margin: 0;
    padding-left: 20px;
}

.form-messages li {
    margin-bottom: 5px;
}

/* Loading state */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Dashboard Styles */
.athinais-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.dashboard-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
    font-size: 32px;
}

.parent-info {
    text-align: right;
}

.parent-info p {
    margin: 5px 0;
    color: #666;
}

.logout-button-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.btn-logout {
    display: inline-block;
    padding: 10px 20px;
    background: #dc3232;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #a00;
    color: #fff;
}

.dashboard-actions {
    margin-bottom: 30px;
    text-align: center;
}

.btn-new-registration {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-new-registration:hover {
    background: #005a87;
}

.dashboard-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.no-athletes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-athletes p {
    margin: 10px 0;
    font-size: 16px;
}

.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.athlete-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.athlete-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.athlete-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.athlete-card-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.athlete-card-body {
    margin-bottom: 15px;
}

.athlete-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.athlete-info-row:last-child {
    border-bottom: none;
}

.athlete-info-row .info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.athlete-info-row .info-value {
    color: #333;
    text-align: right;
    font-size: 14px;
}

.athlete-card-footer {
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.btn-view-details {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-view-details:hover {
    background: #005a87;
}

/* Status badges in dashboard */
.athlete-card .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.athlete-card .status-badge.status-pending {
    background: #f0b849;
    color: #fff;
}

.athlete-card .status-badge.status-approved {
    background: #00a32a;
    color: #fff;
}

.athlete-card .status-badge.status-rejected {
    background: #d63638;
    color: #fff;
}

/* Group badges */
.group-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-badge.group-k16 {
    background: #2271b1;
    color: #fff;
}

.group-badge.group-k12 {
    background: #00a32a;
    color: #fff;
}

.group-badge.group-k11 {
    background: #d63638;
    color: #fff;
}

.group-badge.group-none {
    background: #ccc;
    color: #666;
}

/* Modal styles (reused from admin) */
.athinais-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.athinais-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #ccc;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #000;
}

.athinais-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.athinais-modal-close:hover,
.athinais-modal-close:focus {
    color: #000;
}

.athlete-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
}

.athinais-modal-content h2 {
    color: #000;
    margin-top: 0;
}

.athinais-modal-content p {
    color: #000;
}

.athinais-modal-content ul,
.athinais-modal-content ol {
    color: #000;
}

.athinais-modal-content li {
    color: #000;
}

.detail-section .form-table {
    margin: 0;
}

.detail-section .form-table th {
    width: 150px;
    padding: 8px 0;
    font-weight: 600;
    color: #333;
}

.detail-section .form-table td {
    padding: 8px 0;
    color: #000;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    margin-bottom: 8px;
}

.file-list li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
}

.file-list li a:hover {
    background: #005a87;
}

.file-list li a::before {
    content: "📄";
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .athinais-registration-form,
    .athinais-login-form,
    .athinais-athlete-form {
        padding: 20px;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .parent-info {
        text-align: left;
        margin-top: 15px;
    }
    
    .logout-button-container {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .btn-logout {
        width: 100%;
        text-align: center;
    }
    
    .athletes-grid {
        grid-template-columns: 1fr;
    }
    
    .athlete-details-grid {
        grid-template-columns: 1fr;
    }
    
    .athinais-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

