/* Martial Arts Membership System - Frontend Styles */

.karate-member-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.member-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.member-header h2 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.member-status {
    margin-top: 15px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.member-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .member-info-grid {
        grid-template-columns: 1fr;
    }
}

.member-qr-section,
.member-details-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.member-qr-section h3,
.member-details-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.qr-code-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

#member-qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #666;
}

.qr-instructions {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}

.member-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
}

.detail-item .value {
    color: #6c757d;
    font-weight: 500;
}

.member-schedule-section,
.member-progress-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.member-schedule-section h3,
.member-progress-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.member-schedule-list {
    display: grid;
    gap: 15px;
}

.schedule-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007bff;
}

.class-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.class-schedule {
    color: #6c757d;
    margin-bottom: 5px;
}

.class-type {
    color: #007bff;
    font-size: 0.9em;
    font-weight: 500;
}

.belt-progress-timeline {
    position: relative;
    padding-left: 30px;
}

.belt-progress-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.belt-progress-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.belt-progress-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 3px solid white;
}

.belt-level {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.belt-date {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.belt-notes {
    color: #495057;
    font-style: italic;
    background: white;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

/* Class Schedule Styles */
.karate-class-schedule {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.karate-class-schedule h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

.schedule-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.schedule-filters select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    min-width: 200px;
    background: white;
}

.schedule-filters select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.class-schedule-list {
    display: grid;
    gap: 20px;
}

.class-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.class-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.class-type {
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.class-details {
    display: grid;
    gap: 10px;
}

.class-schedule {
    color: #6c757d;
    font-weight: 500;
}

.class-location {
    color: #495057;
}

.class-capacity {
    color: #28a745;
    font-weight: 600;
}

/* Attendance Form Styles */
.karate-attendance-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.karate-attendance-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background: #0056b3;
}

.button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.button-primary {
    background: #28a745;
}

.button-primary:hover {
    background: #1e7e34;
}

/* Waiver Form Styles */
.karate-waiver-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.karate-waiver-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.waiver-content {
    margin-bottom: 30px;
}

.waiver-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    line-height: 1.6;
    color: #495057;
}

.signature-container {
    margin: 20px 0;
}

#signature-pad {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
}

#clear-signature {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}

#clear-signature:hover {
    background: #545b62;
}

/* Login Form Styles */
.karate-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.karate-login-form h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.karate-login-form p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .karate-member-portal {
        padding: 15px;
    }
    
    .member-header {
        padding: 20px;
    }
    
    .member-header h2 {
        font-size: 2em;
    }
    
    .member-info-grid {
        gap: 20px;
    }
    
    .schedule-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-filters select {
        min-width: 250px;
    }
    
    .class-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .karate-attendance-form,
    .karate-waiver-form,
    .karate-login-form {
        padding: 20px;
        margin: 15px;
    }
}

/* Notification Styles */
.karate-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.karate-notification-success {
    background: #28a745;
}

.karate-notification-error {
    background: #dc3545;
}

.karate-notification-warning {
    background: #ffc107;
    color: #212529;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
