/* Member Zone Styles */

/* Header Navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.user-email {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 480px) {
    .user-email {
        font-size: 0.8rem;
        max-width: 120px;
    }
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Login Section */
.login-section {
    min-height: calc(100vh - 90px - 140px);
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
}

.login-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.login-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.login-card {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.6s ease;
}

.login-header {
    margin-bottom: 32px;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.test-mode-banner {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
    text-align: center;
}

.test-mode-banner code {
    background: rgba(245, 158, 11, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: var(--primary-dark);
}

/* Login Features */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slideInLeft 0.6s ease;
}

.feature-item {
    color: white;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Dashboard Section */
.dashboard-section {
    min-height: calc(100vh - 90px - 140px);
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 48px;
}

.dashboard-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-value-small {
    font-size: 1.1rem;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box svg {
    color: var(--text-light);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

/* Transactions Container */
.transactions-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-height: 400px;
    overflow: hidden;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state p {
    color: var(--text-medium);
    font-size: 1rem;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 16px;
    text-align: center;
}

.error-state svg {
    color: var(--error-color);
}

.error-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.error-state p {
    color: var(--text-medium);
    margin: 0;
}

.retry-btn {
    margin-top: 16px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 16px;
    text-align: center;
}

.empty-state svg {
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.empty-state p {
    color: var(--text-medium);
    margin: 0;
}

/* Transactions Table */
.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.transactions-table thead {
    background: var(--bg-light);
}

.transactions-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.transactions-table td {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.transactions-table tbody tr {
    transition: background 0.2s ease;
}

.transactions-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

.transaction-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.05rem;
}

.transaction-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.refund-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.refund-yes {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.refund-no {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.location-id, .tenant-id {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Card Layout for Transactions */
@media (max-width: 480px) {
    .transactions-table table {
        display: block;
    }
    
    .transactions-table thead {
        display: none;
    }
    
    .transactions-table tbody {
        display: block;
    }
    
    .transactions-table tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .transactions-table tbody tr:hover {
        background: rgba(99, 102, 241, 0.05);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .transactions-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        align-items: center;
    }
    
    .transactions-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-medium);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 70px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .login-features {
        flex-direction: row;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-features {
        flex-direction: column;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .transactions-table {
        font-size: 0.9rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .transactions-table {
        font-size: 0.8rem;
    }
    
    .transactions-table table {
        table-layout: fixed;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 10px 8px;
    }
}
