/* Elegantes Design - Swiss Airlines inspiriert mit Statusjäger-Elementen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #D52B1E;        /* Swiss Red */
    --primary-gold: #FFD700;       /* Gold für Status */
    --primary-black: #1A1A1A;      /* Tiefschwarz */
    --light-gray: #F8F9FA;         /* Sehr helles Grau */
    --medium-gray: #6C757D;        /* Mittleres Grau */
    --dark-gray: #343A40;          /* Dunkles Grau */
    --white: #FFFFFF;
    --border-light: #E9ECEF;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: var(--white);
    color: var(--primary-black);
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border-light);
    padding: 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--light-gray);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-black);
}

.nav-menu {
    padding: 1rem 0;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--light-gray);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.nav-item.active {
    background: var(--light-gray);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
    margin-left: 280px;
}

/* Top Header */
.top-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Area */
.content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hero-bg {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    background-color: var(--light-gray);
    display: block;
}

.hero-content {
    padding: 2rem 3rem;
    text-align: center;
    background: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

/* Cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.card-icon.airline {
    background: var(--light-gray);
}

.card-icon.hotel {
    background: var(--light-gray);
}

.card-icon.investment {
    background: var(--light-gray);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Progress Circles */
.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-red) 0deg, var(--primary-red) 0deg, var(--light-gray) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 1rem;
}

.progress-circle::before {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    position: absolute;
}

.progress-text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-weight: 600;
    color: var(--primary-black);
}

.progress-percentage {
    font-size: 1.5rem;
    display: block;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
}

.status-item h4 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.status-item .status-badge {
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-red);
    display: block;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Forms */
.form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.1);
}

/* Buttons */
.btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #B8241A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 43, 30, 0.3);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-gray);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Werbebereich */
.promo-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0L60 40L100 50L60 60L50 100L40 60L0 50L40 40Z" fill="%23FFD700" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.promo-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promo-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-card h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.gold {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.status-badge.silver {
    background: #C0C0C0;
    color: var(--primary-black);
}

.status-badge.platinum {
    background: #E5E4E2;
    color: var(--primary-black);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    color: var(--medium-gray);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-btn:hover {
    color: var(--primary-red);
}

.tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
}

/* Navigation Icons */
.nav-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    color: var(--medium-gray);
    font-weight: normal;
    position: relative;
}

.nav-item:hover .nav-icon {
    color: var(--primary-red);
}

.nav-item.active .nav-icon {
    color: var(--primary-red);
}

/* CSS Icons - Einheitlich und schlicht */
.icon-home::before { content: "●"; color: #000; }
.icon-plane::before { content: "●"; color: #000; }
.icon-building::before { content: "●"; color: #000; }
.icon-dollar::before { content: "●"; color: #000; }
.icon-chart::before { content: "●"; color: #000; }
.icon-card::before { content: "●"; color: #000; }
.icon-bank::before { content: "●"; color: #000; }
.icon-budget::before { content: "●"; color: #000; }
.icon-users::before { content: "●"; color: #000; }
.icon-settings::before { content: "●"; color: #000; }
.icon-plus::before { content: "●"; color: #000; }

/* Settings Form */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Upload Preview */
.upload-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    text-align: center;
    background: var(--light-gray);
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.upload-preview p {
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Users List */
.users-list {
    display: grid;
    gap: 1rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-details h5 {
    margin: 0;
    color: var(--primary-black);
    font-size: 1rem;
}

.user-details p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.8rem;
}

.user-role {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-role.admin {
    background: var(--primary-red);
    color: var(--white);
}

.user-role.user {
    background: var(--medium-gray);
    color: var(--white);
}

/* Role Switcher */
.role-switcher {
    margin: 0 1rem;
}

.role-switcher select {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--white);
    font-size: 0.9rem;
    color: var(--primary-black);
}

/* ==============================================
   MODULE-SPEZIFISCHE STYLES
   ============================================== */

/* Section Headers */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.status-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.benefit-airline {
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.1em;
}

.benefit-tier {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.benefit-type {
    font-weight: bold;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.benefit-value {
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 8px;
}

.benefit-conditions {
    color: var(--medium-gray);
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

.benefit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.benefit-actions .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

.benefit-actions .btn-edit {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.benefit-actions .btn-delete {
    background: #dc3545;
    color: white;
}

.benefit-category {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-black);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 8px;
}

/* Benefits Management Styles */
.benefit-category-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.category-title {
    background: var(--primary-red);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.category-benefits {
    padding: 20px;
    background: white;
}

.benefit-type-item {
    background: var(--light-gray);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.benefit-type-item:last-child {
    margin-bottom: 0;
}

.benefit-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.benefit-type-name {
    font-weight: bold;
    color: var(--primary-black);
    font-size: 1.1em;
}

.benefit-type-code {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    font-family: monospace;
}

.benefit-type-description {
    color: var(--medium-gray);
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.benefit-type-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

.benefit-type-actions {
    display: flex;
    gap: 10px;
}

.benefit-type-actions .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* Card Subsection */
.card-subsection {
    border-top: 1px solid var(--border-light);
    padding: 20px;
    background: var(--light-gray);
}

.card-subsection h4 {
    margin-bottom: 15px;
    color: var(--primary-black);
    font-size: 1.1em;
}

/* Status Tiers Grid */
.status-tiers-grid {
    margin-top: 20px;
}

.airline-status-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.airline-title {
    background: var(--primary-red);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.status-tiers-list {
    padding: 20px;
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.status-tier-item {
    background: var(--light-gray);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.status-tier-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-tier-name {
    font-weight: bold;
    font-size: 1.1em;
}

.status-tier-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-tier-type.qualification {
    background: #d4edda;
    color: #155724;
}

.status-tier-type.requalification {
    background: #fff3cd;
    color: #856404;
}

.status-tier-level {
    color: var(--medium-gray);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.status-tier-description {
    color: var(--medium-gray);
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.status-tier-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-tier-actions .btn {
    padding: 6px 12px;
    font-size: 0.8em;
}

.status-tier-actions .btn-criteria {
    background: var(--primary-gold);
    color: var(--primary-black);
}

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

.status-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.status-tier {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-tier.gold {
    background: #ffd700;
    color: #8b6914;
}

.status-tier.silver {
    background: #c0c0c0;
    color: #666;
}

.status-tier.platinum {
    background: #e5e4e2;
    color: #333;
}

.status-tier.unknown {
    background: #f0f0f0;
    color: #666;
}

.status-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Investments Grid */
.investments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.investment-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.investment-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.investment-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #007bff;
    color: white;
}

.investment-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-item h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-item p {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.analytics-item p.positive {
    color: #28a745;
}

.analytics-item p.negative {
    color: #dc3545;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.card-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.card-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #6c757d;
    color: white;
}

.card-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Accounts Grid */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.account-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.account-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.account-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #17a2b8;
    color: white;
}

.account-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Expenses Grid */
.expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expense-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.expense-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.expense-amount {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
}

.expense-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* Logout Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Admin-only elements */
.admin-only {
    display: none;
}

.admin-only.show {
    display: block;
}

/* Utility Classes */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--medium-gray);
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .promo-section {
        padding: 2rem 1rem;
    }
    
    .promo-offers {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 280px;
    }
}
