/**
 * ASA Membership - Frontend Styles
 */

/* Brand Colors */
:root {
    --primary-color: #1B4D3E;
    --secondary-color: #C9A961;
    --black: #000000;
    --white: #FFFFFF;
}

/* User Dashboard */
.asa-user-dashboard {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.asa-dashboard-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.asa-dashboard-container h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 28px;
    color: #333;
}

/* Dashboard Header */
.asa-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Hamburger Menu */
.asa-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.asa-hamburger span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
    transform-origin: center;
}

.asa-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.asa-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.asa-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Dashboard Layout */
.asa-dashboard-layout {
    display: flex;
    gap: 30px;
}

.asa-dashboard-sidebar {
    width: 30%;
    min-width: 250px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.asa-dashboard-content {
    flex: 1;
    width: 70%;
}

.asa-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asa-dashboard-nav li {
    margin: 0 0 10px 0;
}

.asa-dashboard-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.asa-dashboard-nav li.active a,
.asa-dashboard-nav a:hover {
    color: var(--primary-color);
    background: rgba(27, 77, 62, 0.1);
}

.asa-dashboard-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

.asa-profile-info {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.asa-profile-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.asa-profile-row:last-child {
    border-bottom: none;
}

.asa-profile-row label {
    font-weight: 600;
    width: 150px;
    color: #555;
}

.asa-profile-row span {
    flex: 1;
    color: #333;
}

.asa-profile-actions {
    margin-top: 20px;
}

.asa-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.asa-btn:hover {
    background: #153d31;
    color: var(--white);
}

.asa-btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.asa-btn-logout {
    background: #dc3545;
}

.asa-btn-logout:hover {
    background: #c82333;
}

/* Membership Plans */
.asa-membership-plans {
    margin: 40px 0;
}

/* Plans Tab Navigation */
.asa-plans-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.asa-plans-tab-button {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #666;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.asa-plans-tab-button:hover {
    color: var(--primary-color);
}

.asa-plans-tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
}

.asa-plans-tab-pane {
    display: none;
}

.asa-plans-tab-pane.active {
    display: block;
}

.asa-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.asa-plan-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.asa-plan-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.15);
    transform: translateY(-4px);
}

.asa-plan-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.asa-plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asa-plan-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #153d31 100%);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.asa-plan-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.asa-plan-price {
    font-size: 18px;
}

.asa-plan-price .asa-currency {
    font-size: 24px;
    vertical-align: top;
}

.asa-plan-price .asa-amount {
    font-size: 48px;
    font-weight: bold;
}

.asa-plan-price .asa-period {
    font-size: 16px;
    opacity: 0.9;
}

.asa-plan-body {
    padding: 30px 20px;
    flex: 1;
}

.asa-plan-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.asa-plan-features {
    margin-top: 20px;
}

.asa-plan-features h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.asa-plan-feature {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    color: #333;
    line-height: 1.5;
}

.asa-plan-programs {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 14px;
}

.asa-plan-programs strong {
    color: var(--primary-color);
}

.asa-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
}

.asa-plan-footer {
    padding: 0 20px 30px 20px;
}

.asa-plan-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.asa-plan-button:hover {
    background: #153d31;
    color: var(--white);
}

.asa-no-plans {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Login Page */
.asa-login-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f5f5f5;
}

.asa-login-container {
    width: 100%;
    max-width: 450px;
}

.asa-login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px;
}

.asa-login-box h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.asa-login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

.asa-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.asa-login-form input[type="email"],
.asa-login-form input[type="text"],
.asa-login-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.asa-login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.asa-login-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.asa-form-checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.asa-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.asa-btn-block {
    width: 100%;
}

.asa-btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.asa-btn-primary:hover {
    background: #153d31;
}

.asa-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.asa-login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Alerts */
.asa-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* Modal */
.asa-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.asa-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.asa-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.asa-modal-close:hover {
    color: #000;
}

.asa-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.asa-plan-price-display {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.asa-form-group input[type="text"],
.asa-form-group input[type="email"],
.asa-form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.asa-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.asa-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.asa-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.asa-btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.asa-btn-secondary:hover {
    background: #5a6268;
}

/* Dashboard Sections */
.asa-dashboard-section {
    display: none;
}

.asa-dashboard-section.active {
    display: block;
}

/* Membership Info */
.asa-membership-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.asa-membership-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.asa-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.asa-detail-row label {
    font-weight: 600;
    width: 180px;
    color: #555;
}

.asa-detail-row span {
    flex: 1;
    color: #333;
}

.asa-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.asa-status-active {
    background: #d4edda;
    color: #155724;
}

.asa-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.asa-no-membership {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.asa-no-membership a {
    color: var(--primary-color);
    text-decoration: none;
}

.asa-no-membership a:hover {
    text-decoration: underline;
}

/* Booking Tabs */
.asa-booking-tabs {
    margin-top: 20px;
}

.asa-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.asa-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.asa-tab-button:hover {
    color: var(--primary-color);
}

.asa-tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.asa-tab-content {
    margin-top: 20px;
}

.asa-tab-pane {
    display: none;
}

.asa-tab-pane.active {
    display: block;
}

/* Booking Form */
.asa-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}

.asa-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.asa-schedule-details {
    margin-top: 15px;
    padding: 15px;
    background: rgba(27, 77, 62, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.asa-schedule-info p {
    margin: 5px 0;
    color: #333;
}

.asa-schedule-info strong {
    color: var(--primary-color);
}

/* Bookings List */
.asa-bookings-list {
    overflow-x: auto;
}

.asa-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.asa-bookings-table thead {
    background: #f9f9f9;
}

.asa-bookings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}

.asa-bookings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e5e5;
    color: #666;
}

.asa-bookings-table tbody tr:last-child td {
    border-bottom: none;
}

.asa-bookings-table tbody tr:hover {
    background: #f9f9f9;
}

.asa-status-approved {
    background: #d4edda;
    color: #155724;
}

.asa-status-pending {
    background: #fff3cd;
    color: #856404;
}

.asa-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.asa-no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Alert Warning */
.asa-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.asa-alert-warning a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.asa-alert-warning a:hover {
    color: #533f03;
}

/* WhatsApp Link */
.asa-whatsapp-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.asa-whatsapp-link:hover {
    background: #1da851;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .asa-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .asa-profile-row {
        flex-direction: column;
    }
    
    .asa-profile-row label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .asa-detail-row {
        flex-direction: column;
    }
    
    .asa-detail-row label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .asa-dashboard-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    /* Show hamburger on mobile */
    .asa-hamburger {
        display: flex;
    }
    
    /* Mobile sidebar */
    .asa-dashboard-layout {
        flex-direction: column;
    }
    
    .asa-dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 20px 20px;
    }
    
    .asa-dashboard-sidebar.active {
        left: 0;
    }
    
    .asa-dashboard-content {
        width: 100%;
    }
    
    .asa-form-actions {
        flex-direction: column;
    }
    
    .asa-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .asa-tab-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .asa-tab-button {
        width: 100%;
        text-align: left;
    }
    
    .asa-bookings-table {
        font-size: 14px;
    }
    
    .asa-bookings-table th,
    .asa-bookings-table td {
        padding: 8px 10px;
    }
    
    .asa-plans-tab-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .asa-plans-tab-button {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
    }
    
    .asa-plan-image {
        height: 180px;
    }
}

/* Session Booking Styles */
.asa-booking-layout {
    margin-top: 30px;
}

.asa-sessions-summary {
    margin-bottom: 30px;
}

.asa-summary-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-color), #2a6b54);
    padding: 30px;
    border-radius: 10px;
    color: white;
}

.asa-summary-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.asa-summary-label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.asa-summary-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
}

.asa-summary-value.asa-remaining {
    color: var(--secondary-color);
}

.asa-booking-form-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.asa-booking-form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.asa-form-group {
    display: flex;
    flex-direction: column;
}

.asa-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.asa-form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.asa-form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.asa-available-classes {
    margin-top: 30px;
}

.asa-available-classes h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.asa-classes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.asa-class-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.asa-class-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.asa-class-card.selected {
    border-color: var(--primary-color);
    background: #f0f7f5;
}

.asa-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.asa-class-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.asa-availability {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.asa-class-details p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.asa-class-details strong {
    color: #333;
}

.asa-btn-select-class {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

.asa-btn-select-class:hover {
    background: #2a6b54;
}

.asa-btn-select-class.selected {
    background: var(--secondary-color);
}

.asa-form-actions {
    margin-top: 30px;
    text-align: center;
}

.asa-no-classes {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.asa-my-bookings-section {
    margin-top: 40px;
}

.asa-my-bookings-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.asa-bookings-table-wrapper {
    overflow-x: auto;
}

.asa-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.asa-bookings-table th,
.asa-bookings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.asa-bookings-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.asa-bookings-table tr:hover {
    background: #f9f9f9;
}

.asa-booking-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.asa-booking-status.asa-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.asa-booking-status.asa-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.asa-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.asa-btn-danger {
    background: #dc3545;
    color: white;
}

.asa-btn-danger:hover {
    background: #c82333;
}

.asa-no-bookings {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.asa-text-muted {
    color: #999;
}

/* Responsive Styles for Booking */
@media (max-width: 768px) {
    .asa-summary-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .asa-form-row {
        grid-template-columns: 1fr;
    }
    
    .asa-classes-list {
        grid-template-columns: 1fr;
    }
    
    .asa-bookings-table {
        font-size: 13px;
    }
    
    .asa-bookings-table th,
    .asa-bookings-table td {
        padding: 8px 10px;
    }
}
