:root {
    --primary: #1a5276; /* Dark Sky Blue */
    --secondary: #3498db; /* Lighter Sky Blue */
    --light: #f8f9fa;
    --dark: #2c3e50;
    --accent: #f1c40f; /* Yellow accent */
}

body {
    background-color: #ecf0f1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 60px; /* Account for fixed header */
}

.app-header {
    background: linear-gradient(180deg, var(--primary) 0%, #154360 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.app-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    word-spacing: 0.5rem;
    letter-spacing: 0.05rem;
}

.sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, #154360 100%);
    color: white;
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    border-left: 3px solid transparent;
    padding: 10px 15px;
    margin: 2px 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-left: 3px solid var(--accent);
    color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-left: 3px solid var(--accent);
    color: white;
    font-weight: 600;
}

/* Offcanvas sidebar for mobile */
.offcanvas-start {
    width: 280px;
    top: 60px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.notification-badge {
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.event-notification {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.profile-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    margin-bottom: 25px;
    background-color: white;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--primary);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #154360;
    border-color: #154360;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.table th {
    background-color: var(--primary);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
    .app-title {
        font-size: 1.2rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header > div:last-child {
        margin-top: 1rem;
    }
    
    .profile-image {
        width: 24px;
        height: 24px;
    }
    
    /* Make sure dropdown menus don't get cut off */
    .dropdown-menu {
        position: absolute !important;
    }
    
    /* Adjust content area for mobile */
    .container-fluid > .row > .col-md-9 {
        padding-top: 1rem;
    }
}

/* Print styles */
@media print {
    .app-header, .sidebar {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background-color: white !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
}