/**
 * ST Website - Main Stylesheet
 * Responsive design with red primary color
 * Mobile-first approach
 */

/* ========== CSS Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #e4606d;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* ========== Container & Layout ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: calc(100vh - 70px - 200px);
    padding: 40px 0;
}

/* ========== Header & Navigation ========== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Info Bar (Parole & Protocols) */
.info-bar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    padding: 10px 0;
    border-bottom: 3px solid var(--primary-dark);
}

.info-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-item i {
    font-size: 18px;
    opacity: 0.9;
}

.info-item strong {
    font-weight: 600;
    margin-right: 6px;
}

.parole-words {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.protocol-list {
    font-weight: 600;
    font-size: 14px;
}

.navbar {
    padding: 15px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 30px;
}

/* Logo & Brand (Left) */
.navbar-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 22px;
}

.navbar-brand i {
    font-size: 28px;
}

.navbar-brand a {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand a:hover {
    color: var(--primary-dark);
}

/* Navigation Menu (Center) */
.navbar-nav {
    grid-area: nav;
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-nav li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav li a:hover {
    color: var(--primary-color);
    background: rgba(220, 53, 69, 0.05);
}

.navbar-nav li a.active {
    color: var(--primary-color);
    background: rgba(220, 53, 69, 0.1);
    font-weight: 600;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-toggle .fa-chevron-down {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    margin: 8px 0 0 0;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
}

.nav-dropdown-menu li a:hover {
    background: rgba(220, 53, 69, 0.05);
    color: var(--primary-color);
}

.nav-dropdown-menu li a i {
    width: 18px;
    text-align: center;
}

.nav-dropdown-menu li.nav-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 12px;
    padding: 0;
}

/* Mobile Toggle Button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    grid-area: actions;
    justify-self: end;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* User & Actions (Right) */
.navbar-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 14px;
}

.user-dropdown-toggle:hover {
    background: #e9ecef;
    border-color: var(--border-color);
}

.user-dropdown.active .user-dropdown-toggle {
    background: var(--white);
    border-color: var(--primary-color);
}

.user-dropdown-toggle .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-dropdown-toggle .user-name {
    color: var(--text-color);
    font-weight: 600;
}

.user-dropdown-toggle .fa-chevron-down {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-dropdown.active .user-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info-card {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-info-name {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.user-info-rank {
    font-size: 13px;
    color: var(--text-muted);
}

.user-info-steam {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-info-steam i {
    color: #171a21;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    width: fit-content;
}

.badge-admin {
    background: #dc3545;
    color: white;
}

.user-dropdown-links {
    padding: 8px 0;
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown-link:hover {
    background: #f8f9fa;
}

.user-dropdown-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.user-dropdown-link span {
    font-weight: 500;
}

.user-dropdown-link.admin-link {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.1) 100%);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

.user-dropdown-link.admin-link:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(200, 35, 51, 0.15) 100%);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}

.btn-primary {
    display: inline-block;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-primary i {
    margin-right: 6px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 35px;
    font-size: 18px;
}

/* ========== Landing Page ========== */
.landing-page {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.landing-auth {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100;
}

.user-greeting {
    font-size: 14px;
    color: var(--text-color);
    background: white;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.landing-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.info-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.link-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.documents-list {
    display: grid;
    gap: 20px;
}

.document-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.document-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(10px);
}

.doc-icon {
    font-size: 48px;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    margin: 0 0 8px;
    color: var(--text-color);
}

.doc-info p {
    color: var(--text-muted);
    margin: 0 0 10px;
    font-size: 14px;
}

.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.doc-link:hover {
    text-decoration: underline;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(220, 53, 69, 0.9);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    transition: var(--transition);
}

.play-button:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item h4 {
    padding: 15px 20px 5px;
    color: var(--text-color);
}

.video-item p {
    padding: 0 20px 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.landing-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.landing-footer p {
    margin: 5px 0;
}

.landing-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

/* ========== Login Page ========== */
.login-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ========== Alerts ========== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 2px solid transparent;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 8px 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .navbar-container {
        grid-template-columns: 180px 1fr auto;
        gap: 20px;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
    
    .navbar-brand i {
        font-size: 24px;
    }
    
    .navbar-nav {
        gap: 15px;
    }
    
    .navbar-nav li a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: 
            "brand toggle actions"
            "nav nav nav";
        gap: 0;
    }
    
    .navbar-toggle {
        display: flex;
        grid-area: toggle;
        order: 2;
    }
    
    .navbar-nav {
        grid-area: nav;
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        gap: 0;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        width: 100%;
    }
    
    .navbar-nav li a {
        display: flex;
        padding: 12px 16px;
        width: 100%;
    }
    
    .navbar-actions {
        grid-area: actions;
        order: 3;
    }
    
    .user-dropdown-menu {
        right: 0;
        width: 280px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .info-grid,
    .links-grid,
    .gallery-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-auth {
        position: relative;
        top: 0;
        right: 0;
        margin: 15px;
        justify-content: flex-end;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-brand i {
        font-size: 22px;
    }
    
    .navbar-brand a {
        font-size: 16px;
    }
    
    .user-dropdown-toggle .user-name {
        display: none;
    }
    
    .user-dropdown-menu {
        width: 260px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* ========== Font Awesome Icon Styling ========== */
.doc-icon i,
.category-icon i,
.activity-icon i,
.quick-link-icon i,
.action-icon i {
    color: var(--primary-color);
}

.member-avatar i {
    font-size: 48px;
    color: var(--primary-color);
}

.quick-link-card:hover .quick-link-icon i,
.action-button:hover .action-icon i {
    color: white;
}

.info-card h3 i {
    margin-right: 10px;
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Selection Color ========== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== Notification System ========== */

/* Notification Bell Button in Header */
.notification-bell-btn {
    position: relative;
    background: #f8f9fa;
    border: 2px solid transparent;
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-btn:hover {
    background: #e9ecef;
    border-color: var(--border-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.notification-bell-btn:active {
    transform: scale(0.95);
}

.notification-bell-btn.has-notifications {
    color: var(--primary-color);
    animation: bellShake 0.5s ease;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* For landing page - different button style */
.landing-page .notification-bell-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.landing-page .notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: var(--white);
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Panel - Modern Slide-in from Right */
.notification-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-panel.show {
    opacity: 1;
    pointer-events: all;
}

.notification-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    max-width: 90vw;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-panel.show .notification-panel-content {
    transform: translateX(0);
}

/* Panel Header */
.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-panel-title i {
    font-size: 24px;
}

.notification-panel-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.notification-panel-actions {
    display: flex;
    gap: 8px;
}

.btn-panel-action,
.btn-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-panel-action:hover,
.btn-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-panel-close {
    padding: 8px 10px;
}

/* Panel List */
.notification-panel-list {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
}

.notification-loading,
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-muted);
    padding: 40px 20px;
}

.notification-loading i,
.notification-empty i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.notification-loading p,
.notification-empty p {
    margin: 0;
    font-size: 16px;
}

/* Notification Items - Modern Card Design */
.notification-item {
    background: var(--white);
    margin: 12px;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #0dcaf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

/* Notifications with links are clickable */
.notification-item[data-link] {
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
}

.notification-item[data-link]:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    transform: translateX(-6px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15);
}

.notification-item[data-link]::after {
    content: '\f35d'; /* fa-arrow-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 18px;
}

.notification-item[data-link]:hover::after {
    transform: translateY(-50%) translateX(0);
    opacity: 0.6;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover {
    transform: translateX(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.notification-item:hover::before {
    opacity: 1;
}

.notification-item.unread {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-left-width: 5px;
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.1);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 12px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-message {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.notification-link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 4px 0;
}

.notification-link-text i {
    font-size: 12px;
}

/* Notification Actions */
.notification-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-actions button {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-mark-read:hover {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.btn-delete:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

/* Scrollbar Styling */
.notification-panel-list::-webkit-scrollbar {
    width: 8px;
}

.notification-panel-list::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.notification-panel-list::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}

.notification-panel-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-panel-content {
        width: 100%;
        max-width: 100vw;
    }
    
    .notification-item {
        margin: 8px;
        padding: 12px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Animation for new notifications */
@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item.new {
    animation: slideInNotification 0.4s ease;
}

/* ========== Calendar Styles ========== */

/* Calendar Container */
.calendar-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-nav h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    min-width: 280px;
    text-align: center;
    margin: 0;
}

.btn-icon {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#calendar-create {
    margin-left: auto;
    white-space: nowrap;
}

#calendar-create i {
    margin-right: 6px;
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.view-switcher {
    display: flex;
    gap: 0;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-view {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--dark);
}

.btn-view.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-view i {
    margin-right: 5px;
}

/* Loading State */
.calendar-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

.calendar-loading i {
    font-size: 32px;
    margin-bottom: 15px;
}

/* ========== Month View ========== */
.calendar-month {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light);
    border-bottom: 2px solid var(--border-color);
}

.calendar-weekday {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 140px;
    gap: 0;
}

.calendar-day {
    border: 1px solid var(--border-color);
    padding: 8px;
    min-height: 140px;
    max-height: 140px;
    overflow-y: auto;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

/* Custom scrollbar for calendar days */
.calendar-day::-webkit-scrollbar {
    width: 6px;
}

.calendar-day::-webkit-scrollbar-track {
    background: transparent;
}

.calendar-day::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.calendar-day::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.calendar-day:hover {
    background: var(--light);
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day.empty:hover {
    background: #fafafa;
}

.calendar-day.today {
    background: #fff8e1;
}

.calendar-day.today .day-number {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-event {
    font-size: 12px;
    padding: 4px 7px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.day-event:hover {
    background: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.event-time {
    font-weight: 700;
    margin-right: 5px;
    font-size: 11px;
    color: var(--primary-color);
}

.event-title {
    color: var(--text-color);
}

.day-event-more {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
    font-weight: 600;
}

/* ========== Week View ========== */
.calendar-week {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.week-grid {
    display: flex;
    flex-direction: column;
}

.week-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 3px solid var(--border-color);
}

.week-time-header {
    padding: 14px;
    font-weight: 700;
    text-align: center;
    border-right: 2px solid var(--border-color);
    background: #f0f0f0;
    font-size: 13px;
    color: var(--text-muted);
}

.week-day-header {
    padding: 14px;
    text-align: center;
    border-right: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.week-day-header:hover {
    background: rgba(220, 53, 69, 0.05);
}

.week-day-header.today {
    background: linear-gradient(135deg, #fff8e1, #fffbf0);
    border: 2px solid var(--primary-color);
    border-top: 0;
    border-bottom: 0;
}

.day-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 4px;
}

.week-day-header.today .day-num {
    color: var(--primary-color);
}

.week-body {
    display: flex;
    flex-direction: column;
}

.week-row {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    border-bottom: 2px solid #f0f0f0;
    min-height: 60px;
}

.week-time {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-right: 2px solid var(--border-color);
    background: #fafafa;
    font-weight: 600;
}

.week-cell {
    border-right: 2px solid #f0f0f0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
}

.week-cell:hover {
    background: rgba(220, 53, 69, 0.05);
}

.week-event {
    position: absolute;
    left: 2px;
    /* width and height set dynamically via JS */
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--white);
    font-size: 11px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    font-weight: 600;
    line-height: 1.3;
}

.week-event:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 100 !important;
}

.event-title-small {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

/* ========== Day View ========== */
.calendar-day-view {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.day-allday-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 24px;
    border-bottom: 3px solid var(--border-color);
}

.day-allday-section h3 {
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--dark);
    font-weight: 700;
}

.day-allday-section h3 i {
    margin-right: 8px;
    font-size: 16px;
}

.allday-event {
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.allday-event i {
    margin-right: 8px;
    font-size: 13px;
}

.allday-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.day-timeline {
    padding: 24px;
}

.day-hour {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    min-height: 80px;
    padding: 10px 0;
}

.hour-label {
    width: 80px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 2px;
}

.hour-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 16px;
}

.day-event {
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.day-event:hover {
    background: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-left-width: 6px;
}

.event-title-large {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 4px;
}

/* ========== List View ========== */
.calendar-list {
    background: var(--white);
}

.list-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    border: 2px dashed #e9ecef;
    margin: 20px 0;
}

.list-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.list-date-group {
    margin-bottom: 30px;
}

.list-date-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 14px 24px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 2px solid #e9ecef;
}

.list-date-group.today .list-date-header {
    background: linear-gradient(135deg, #fff8e1, #fffbf0);
    border-left: 5px solid var(--primary-color);
    border: 2px solid var(--primary-color);
    border-left-width: 5px;
}

.list-date-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.list-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-event {
    display: flex;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.list-event:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.event-color-bar {
    width: 8px;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
    padding: 20px 24px;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.event-time-badge {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    border: 2px solid #e9ecef;
}

.event-category {
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.event-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.event-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-meta i {
    color: var(--primary-color);
    font-size: 13px;
}

/* ========== Calendar Modals ========== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 850px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-content form {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
}

#event-actions {
    display: flex;
    gap: 8px;
}

#event-actions {
    display: flex;
    gap: 8px;
}

/* ========== Profile Page ========== */

/* Profile Container - 2 Column Grid */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.profile-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    position: sticky;
    top: 90px;
}

.profile-avatar-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--text-muted);
    font-size: 48px;
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px;
}

.profile-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.profile-rank i {
    color: #ffc107;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-stat-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.profile-stat-value {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

/* Main Content */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-section-title i {
    color: var(--primary-color);
    font-size: 22px;
}

.profile-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid transparent;
}

.profile-field-help {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.profile-field-help i {
    font-size: 11px;
}

.profile-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #fff3cd;
    border: 2px solid #ffeeba;
    border-radius: 8px;
    color: #856404;
}

.profile-info-box i {
    font-size: 20px;
    margin-top: 2px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Role Badges in Sidebar */
.profile-roles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.badge-primary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

.badge-k9 {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Role Badges Large (in main content) */
.profile-roles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-badge-large {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.role-badge-large i {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.role-info {
    flex: 1;
}

.role-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.role-description {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
}

.role-badge-large.badge-primary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.role-badge-large.badge-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.role-badge-large.badge-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.role-badge-large.badge-k9 {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

/* Account Statistics Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.profile-stat-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
}

.profile-stat-box:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.profile-stat-box:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.profile-stat-box:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #218838);
}

.profile-stat-box:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.profile-stat-box:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-info {
    width: 100%;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Responsive */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .role-badge-large {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== Form Styles ========== */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
}

.checkbox-group label:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-option {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: var(--dark);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--dark), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Reminders */
.reminder-input-group {
    margin-bottom: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reminder-input-group .form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reminder-input-group .reminder-row {
    flex-wrap: wrap;
}

.reminder-input-group .reminder-config {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 300px;
}

.reminder-input-group input,
.reminder-input-group select {
    flex: 1;
}

.reminder-input-group .reminder-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Icon Picker for Reminders */
.icon-picker-mini {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.icon-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #495057;
}

.icon-option:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
    transform: scale(1.05);
}

.icon-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-remove-reminder {
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-remove-reminder:hover {
    background: #c82333;
    transform: scale(1.05);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    color: #c82333;
}

.btn-link i {
    font-size: 12px;
}

.btn-link i {
    margin-right: 4px;
}

/* Recurrence Options */
#recurrence-options {
    background: var(--light);
    padding: 15px;
    border-radius: 6px;
}

.weekday-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.weekday-selector label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 50px;
}

.weekday-selector label:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.weekday-selector input[type="checkbox"] {
    display: none;
}

.weekday-selector input[type="checkbox"]:checked + span {
    color: var(--white);
}

.weekday-selector label:has(input:checked) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* ========== Event Details Modal ========== */

.event-details {
    padding: 24px 28px;
}

.detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 700;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.detail-label i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.detail-value {
    flex: 1;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.detail-value h3 {
    margin: 0;
    font-size: 24px;
    color: var(--dark);
    font-weight: 700;
}

.attendee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    transition: var(--transition);
}

.attendee-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Attendee Selection Widget */
.attendee-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.attendee-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.attendee-list {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 12px;
}

.attendee-list-item {
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendee-list-item:last-child {
    border-bottom: none;
}

.attendee-list-item:hover {
    background: #ffffff;
}

.attendee-list-item.selected {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.05));
    border-left: 4px solid var(--primary-color);
}

.attendee-list-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.attendee-list-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.attendee-list-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.selected-attendees-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 45px;
    border: 2px dashed #e9ecef;
}

.selected-attendees-preview:empty::before {
    content: "Keine Teilnehmer ausgewählt";
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

.selected-attendee-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.selected-attendee-tag .remove-attendee {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.selected-attendee-tag .remove-attendee:hover {
    opacity: 1;
}

.btn-danger {
    display: inline-block;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger i {
    margin-right: 6px;
}

/* ========== Responsive Calendar ========== */

@media (max-width: 1024px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-nav {
        justify-content: center;
    }
    
    .calendar-controls {
        justify-content: center;
    }
    
    .calendar-days {
        grid-auto-rows: minmax(80px, auto);
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-event {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-nav h2 {
        font-size: 20px;
        min-width: 180px;
    }
    
    .view-switcher .btn-view span {
        display: none; /* Hide text, show only icons */
    }
    
    .btn-view i {
        margin-right: 0;
    }
    
    .week-grid {
        overflow-x: auto;
    }
    
    .week-header,
    .week-row {
        min-width: 800px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* ========== Calendar Preview Widget (Homepage) ========== */

.calendar-preview-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
}

.section-header h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-primary-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-loading-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.calendar-preview-widget {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.preview-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.preview-day {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.preview-day:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.preview-day.today {
    border: 2px solid var(--primary-color);
    background: #fff8e1;
}

.preview-day-header {
    background: var(--light);
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.preview-day.today .preview-day-header {
    background: var(--primary-color);
    color: var(--white);
}

.preview-day-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.preview-day.today .preview-day-name {
    color: rgba(255, 255, 255, 0.9);
}

.preview-day-num {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
}

.preview-day.today .preview-day-num {
    color: var(--white);
}

.preview-day-events {
    padding: 8px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-no-events {
    text-align: center;
    color: var(--text-muted);
    font-size: 24px;
    padding: 30px 0;
}

.preview-event {
    font-size: 11px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-event:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.preview-time {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
}

.preview-title {
    color: var(--text-color);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-more {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    padding: 4px;
}

.preview-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.preview-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--success-color);
}

.preview-empty p {
    font-size: 14px;
}

/* Preview Widget Responsive */
@media (max-width: 1024px) {
    .preview-week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .preview-day:nth-child(n+5) {
        display: none; /* Show only 4 days on tablets */
    }
}

@media (max-width: 768px) {
    .calendar-preview-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .preview-week-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preview-day:nth-child(n+4) {
        display: none; /* Show only 3 days on mobile */
    }
    
    .preview-day-events {
        min-height: 80px;
    }
}

