/**
 * Custom CSS for Emotion Trip
 * Responsive styles for mobile-first design
 */

:root {
    /* Emotion Trip Brand Colors */
    --primary-color: #1155B8;          /* Brand Blue (primary) */
    --secondary-color: #3182FB;        /* Brand Light Blue */
    --accent-color: #B30908;           /* Brand Red */

    /* Semantic Colors */
    --success-color: #2e7d32;
    --danger-color: #B30908;           /* Using brand red for danger */
    --warning-color: #f57c00;
    --info-color: #3182FB;             /* Using light blue for info */

    /* Subscription Level Colors */
    --bronze-color: #CD7F32;
    --silver-color: #C0C0C0;
    --gold-color: #FFD700;
    --platinum-color: #E5E4E2;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #1155B8, #3182FB);
    --gradient-accent: linear-gradient(135deg, #B30908, #E63946);
    --gradient-bronze: linear-gradient(135deg, #CD7F32, #E6A851);
    --gradient-silver: linear-gradient(135deg, #C0C0C0, #D3D3D3);
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-platinum: linear-gradient(135deg, #E5E4E2, #B0C4DE);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.navbar {
    min-height: 70px;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    background-color: white;
    z-index: 0;
}

.navbar .container-fluid {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    background-color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    height: 70px;
    margin-left: 0;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* Stat Cards */
.stat-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(17, 85, 184, 0.2);
}

.stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-action {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    margin: 0 0.125rem;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 20px;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

/* Charts */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

/* Dashboard */
.dashboard-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(17, 85, 184, 0.3);
}

.dashboard-header h1 {
    margin: 0;
    font-weight: bold;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.5em 1em;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .stat-card .stat-value {
        font-size: 2rem;
    }

    .chart-container {
        height: 300px;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn-action {
        padding: 0.125rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

/* Status Badges */
.status-active {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--danger-color);
}

.status-pending {
    background-color: var(--warning-color);
}

/* Goal Progress */
.goal-progress {
    position: relative;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.goal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #66bb6a);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Audit Log */
.audit-log-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.audit-log-item:hover {
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* Subscription Level Cards */
.subscription-card-bronze {
    background: var(--gradient-bronze);
    color: white;
}

.subscription-card-silver {
    background: var(--gradient-silver);
    color: #333;
}

.subscription-card-gold {
    background: var(--gradient-gold);
    color: #333;
}

.subscription-card-platinum {
    background: var(--gradient-platinum);
    color: #333;
}

.subscription-card {
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-weight: bold;
    font-size: 3rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Accent Elements */
.text-accent {
    color: var(--accent-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.border-accent {
    border-color: var(--accent-color);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #8e0706;
    border-color: #8e0706;
    color: white;
}
