/* ================================
   CARA EVENT SCHEDULE - ENHANCED GRADIENT STYLES
   ================================ */

/* Page Background - Enhanced Gradient */
body {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #1e293b 100%);
    min-height: 100vh;
    padding-top: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    -webkit-animation: backgroundShift 20s ease-in-out infinite;
            animation: backgroundShift 20s ease-in-out infinite;
}

/* Dynamic background animation */
@-webkit-keyframes backgroundShift {
    0%, 100% { 
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #1e293b 100%);
    }
    50% { 
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 25%, #0369a1 50%, #075985 75%, #0c4a6e 100%);
    }
}
@keyframes backgroundShift {
    0%, 100% { 
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #1e293b 100%);
    }
    50% { 
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 25%, #0369a1 50%, #075985 75%, #0c4a6e 100%);
    }
}

/* Enhanced background texture with moving gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #3b82f6 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #1d4ed8 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    opacity: 0.4;
    z-index: -1;
    -webkit-animation: gradientMove 15s ease-in-out infinite;
            animation: gradientMove 15s ease-in-out infinite;
}

@-webkit-keyframes gradientMove {
    0%, 100% { -webkit-transform: rotate(0deg) scale(1); transform: rotate(0deg) scale(1); }
    50% { -webkit-transform: rotate(180deg) scale(1.1); transform: rotate(180deg) scale(1.1); }
}

@keyframes gradientMove {
    0%, 100% { -webkit-transform: rotate(0deg) scale(1); transform: rotate(0deg) scale(1); }
    50% { -webkit-transform: rotate(180deg) scale(1.1); transform: rotate(180deg) scale(1.1); }
}

/* Main Container Enhancements */
.container {
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

/* ================================
   CARD STYLING ENHANCEMENTS
   ================================ */

/* Main Event Management Card */
.card {
    border: none;
    border-radius: 20px;
    -webkit-box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
            box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Card gradient overlay */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    pointer-events: none;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.card:hover {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
    -webkit-box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

/* Card Header Styling */
.card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #0369a1 100%);
    border: none;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0 !important;
    -webkit-box-shadow: 
        0 4px 15px rgba(29, 78, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 4px 15px rgba(29, 78, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Card header shine effect */
.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.3)), to(transparent));
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    -webkit-transition: left 0.6s ease;
    transition: left 0.6s ease;
}

.card-header:hover::before {
    left: 100%;
}

.card-header h3 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* ================================
   BOOTSTRAP 5 CARD HEADER LINK STYLING
   ================================ */

/* Make all links in Bootstrap 5 card headers light blue */
.card-header a {
    color: #87ceeb !important;
}

.card-header a:hover {
    color: #add8e6 !important;
}

/* Card Body Enhancements */
.card-body {
    padding: 2rem;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.99)), to(rgba(248, 250, 252, 0.99)));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
    position: relative;
}

/* Events List Card */
.col-lg-4 .card {
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    -webkit-box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
            box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.col-lg-4 .card-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 25%, #6366f1 50%, #8b5cf6 75%, #a855f7 100%);
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
    -webkit-box-shadow: 
        0 4px 15px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 4px 15px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Events List Card Header Text Enhancement */
.col-lg-4 .card-header h5,
.col-lg-4 .card-header .card-title {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0;
}

/* MODERN CLEAN TOGGLE SWITCH CONTAINER */
.col-lg-4 .card-header .form-check {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 0.5rem 1rem !important;
    -webkit-box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
            box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    -webkit-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    -webkit-backdrop-filter: blur(15px) !important;
            backdrop-filter: blur(15px) !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
    gap: 0.5rem !important;
}

.col-lg-4 .card-header .form-check:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    -webkit-box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
            box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    -webkit-transform: translateY(-2px) !important;
            transform: translateY(-2px) !important;
}

/* MODERN CUSTOM TOGGLE SWITCH - ENHANCED CONTRAST */
.col-lg-4 .card-header .form-check-input {
    -moz-appearance: none !important;
         appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(145deg, #475569 0%, #334155 100%) !important;
    border: 3px solid #1e293b !important;
    width: 3rem !important;
    height: 1.5rem !important;
    border-radius: 1rem !important;
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    -ms-flex-negative: 0 !important;
        flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Toggle Switch Knob - ENHANCED CONTRAST */
.col-lg-4 .card-header .form-check-input::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(1.5rem - 8px);
    height: calc(1.5rem - 8px);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    -webkit-box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Switch ON State - ENHANCED CONTRAST */
.col-lg-4 .card-header .form-check-input:checked {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #065f46 !important;
    -webkit-box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(34, 197, 94, 0.4) !important;
            box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(34, 197, 94, 0.4) !important;
}

/* Switch Knob ON Position */
.col-lg-4 .card-header .form-check-input:checked::before {
    -webkit-transform: translateX(1.4rem);
            transform: translateX(1.4rem);
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.2);
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hover States */
.col-lg-4 .card-header .form-check-input:hover {
    -webkit-box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.col-lg-4 .card-header .form-check-input:checked:hover {
    -webkit-box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 25px rgba(34, 197, 94, 0.5) !important;
            box-shadow: 
        0 4px 12px rgba(34, 197, 94, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 25px rgba(34, 197, 94, 0.5) !important;
}

/* Focus States */
.col-lg-4 .card-header .form-check-input:focus {
    outline: none !important;
    -webkit-box-shadow: 
        0 0 0 3px rgba(14, 165, 233, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 0 0 3px rgba(14, 165, 233, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.col-lg-4 .card-header .form-check-input:checked:focus {
    -webkit-box-shadow: 
        0 0 0 3px rgba(34, 197, 94, 0.4),
        0 2px 8px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
            box-shadow: 
        0 0 0 3px rgba(34, 197, 94, 0.4),
        0 2px 8px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* CLEAN TEXT LABEL - ENHANCED CONTRAST */
.col-lg-4 .card-header .form-check-label {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-left: 0.25rem !important;
    line-height: 1.3 !important;
    -webkit-box-flex: 1 !important;
        -ms-flex-positive: 1 !important;
            flex-grow: 1 !important;
    cursor: pointer !important;
}

/* Debug button in events header - Updated to match new contrasting style */
.col-lg-4 .card-header .btn {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%) !important;
    border: 2px solid #6b7280 !important;
    color: #d1d5db !important;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 8px !important;
}

.col-lg-4 .card-header .btn:hover {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%) !important;
    border-color: #9ca3af !important;
    color: #f3f4f6 !important;
    -webkit-transform: translateY(-1px);
            transform: translateY(-1px);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ================================
   BUTTON STYLING ENHANCEMENTS
   ================================ */

/* Primary Button Group */
.btn-group .btn {
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin: 0 2px;
    -webkit-box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.btn-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.3)), to(transparent));
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    -webkit-transition: left 0.6s ease;
    transition: left 0.6s ease;
}

.btn-group .btn:hover::before {
    left: 100%;
}

.btn-outline-primary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid #4338ca;
    color: #4338ca;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
}

.btn-outline-primary:hover {
    background: linear-gradient(145deg, #4338ca 0%, #3730a3 100%);
    border-color: #3730a3;
    color: white;
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4);
            box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4);
}

.btn-outline-success {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid #059669;
    color: #059669;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
}

.btn-outline-success:hover {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    border-color: #047857;
    color: white;
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
            box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.btn-outline-secondary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 2px solid #6b7280;
    color: #6b7280;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
}

.btn-outline-secondary:hover {
    background: linear-gradient(145deg, #6b7280 0%, #4b5563 100%);
    border-color: #4b5563;
    color: white;
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
            box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 25%, #f87171 50%, #fca5a5 75%, #fecaca 100%);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    -webkit-box-shadow: 
        0 6px 15px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 6px 15px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 25%, #ef4444 50%, #f87171 75%, #fca5a5 100%);
    -webkit-transform: translateY(-3px);
            transform: translateY(-3px);
    -webkit-box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
            box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
}

/* ================================
   GOOGLE MAPS ICON STYLING
   ================================ */

/* Make the Google Maps icon button's icon red */
#map_button .fas.fa-map-marker-alt {
    color: #dc2626 !important;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Hover effect for the map icon */
#map_button:hover .fas.fa-map-marker-alt {
    color: #b91c1c !important;
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
}

/* ================================
   FORM STYLING ENHANCEMENTS
   ================================ */

/* Form Control Enhancements */
.form-control {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    -webkit-box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: left;
}

.form-control:focus {
    border-color: #4338ca;
    -webkit-box-shadow: 
        0 0 0 0.25rem rgba(67, 56, 202, 0.25), 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 
        0 0 0 0.25rem rgba(67, 56, 202, 0.25), 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
}

.form-control[readonly] {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    color: #475569;
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-control[disabled] {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    opacity: 0.7;
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Textarea Specific */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ================================
   TITLE FIELD SPECIAL STYLING
   ================================ */

#event_title {
    text-align: left !important;
}

#event_title, #add_event_title {
    font-size: 1.4rem;
    line-height: 1.4;
    padding: 1rem 1.25rem;
    font-weight: 700;
    border-radius: 15px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ================================
   TIME FIELD SPECIFIC STYLING - SIDE BY SIDE LAYOUT
   ================================ */

/* Time fields now in side-by-side layout - optimize for new structure */
#start_time, #end_time, 
#add_start_time, #add_end_time {
    width: 100% !important;
    min-width: 140px !important;
    max-width: none !important;
    padding-right: 1rem !important;
}

/* Ensure proper spacing for side-by-side time fields */
.row.g-2 .col-6 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

/* Enhanced Random Gradient Colors for Event Title Fields */
.title-bg-1 { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 50%, #facc15 100%) !important;
    border-color: #eab308 !important;
    color: #92400e !important;
    -webkit-box-shadow: 0 8px 25px rgba(234, 179, 8, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(234, 179, 8, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-2 { 
    background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 50%, #3b82f6 100%) !important;
    border-color: #2563eb !important;
    color: #1e3a8a !important;
    -webkit-box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-3 { 
    background: linear-gradient(135deg, #dcfce7 0%, #4ade80 50%, #22c55e 100%) !important;
    border-color: #16a34a !important;
    color: #14532d !important;
    -webkit-box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-4 { 
    background: linear-gradient(135deg, #fecaca 0%, #f87171 50%, #ef4444 100%) !important;
    border-color: #dc2626 !important;
    color: #7f1d1d !important;
    -webkit-box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-5 { 
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 50%, #6b7280 100%) !important;
    border-color: #4b5563 !important;
    color: #111827 !important;
    -webkit-box-shadow: 0 8px 25px rgba(75, 85, 99, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(75, 85, 99, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-6 { 
    background: linear-gradient(135deg, #fce7f3 0%, #f472b6 50%, #ec4899 100%) !important;
    border-color: #db2777 !important;
    color: #831843 !important;
    -webkit-box-shadow: 0 8px 25px rgba(219, 39, 119, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(219, 39, 119, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-7 { 
    background: linear-gradient(135deg, #ecfdf5 0%, #6ee7b7 50%, #10b981 100%) !important;
    border-color: #059669 !important;
    color: #064e3b !important;
    -webkit-box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-8 { 
    background: linear-gradient(135deg, #eff6ff 0%, #93c5fd 50%, #3b82f6 100%) !important;
    border-color: #2563eb !important;
    color: #1e3a8a !important;
    -webkit-box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-9 { 
    background: linear-gradient(135deg, #fffbeb 0%, #fcd34d 50%, #f59e0b 100%) !important;
    border-color: #d97706 !important;
    color: #92400e !important;
    -webkit-box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.title-bg-10 { 
    background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 50%, #a855f7 100%) !important;
    border-color: #9333ea !important;
    color: #581c87 !important;
    -webkit-box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Enhanced Focus States for Colored Title Fields */
#event_title[class*="title-bg-"]:focus, #add_event_title[class*="title-bg-"]:focus {
    -webkit-transform: translateY(-5px);
            transform: translateY(-5px);
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ================================
   TABLE STYLING ENHANCEMENTS
   ================================ */

.table {
    border-radius: 10px;
    overflow: hidden;
    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.table tbody tr {
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    -webkit-transform: translateX(8px);
            transform: translateX(8px);
}

.event-title-clickable {
    color: #4338ca !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    padding: 0.5rem;
    border-radius: 8px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: inline-block;
    background: linear-gradient(135deg, transparent 0%, rgba(67, 56, 202, 0.05) 100%);
}

.event-title-clickable:hover {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.1) 0%, rgba(67, 56, 202, 0.2) 100%);
    color: #3730a3 !important;
    text-decoration: none !important;
    -webkit-transform: translateX(5px);
            transform: translateX(5px);
    -webkit-box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
            box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
}

/* ================================
   IMAGE STYLING ENHANCEMENTS
   ================================ */

.img-fluid {
    border-radius: 15px;
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 3px solid;
    -o-border-image: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%) 1;
       border-image: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%) 1;
}

.img-fluid:hover {
    -webkit-transform: scale(1.03);
            transform: scale(1.03);
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ================================
   SWITCH STYLING ENHANCEMENTS - HIGH CONTRAST
   ================================ */

/* General form switches (outside events header) - ENHANCED CONTRAST */
.form-check-input {
    -moz-appearance: none !important;
         appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(145deg, #64748b 0%, #475569 100%) !important;
    border: 3px solid #1e293b !important;
    width: 2.5rem !important;
    height: 1.25rem !important;
    border-radius: 1rem !important;
    -webkit-box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* General form switch knob */
.form-check-input::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(1.25rem - 8px);
    height: calc(1.25rem - 8px);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-check-input:checked {
    background: linear-gradient(145deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1e3a8a !important;
    -webkit-box-shadow: 
        0 2px 8px rgba(29, 78, 216, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(29, 78, 216, 0.3) !important;
            box-shadow: 
        0 2px 8px rgba(29, 78, 216, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(29, 78, 216, 0.3) !important;
}

/* General form switch knob ON position */
.form-check-input:checked::before {
    -webkit-transform: translateX(1.2rem);
            transform: translateX(1.2rem);
    background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Hover states for general switches */
.form-check-input:hover {
    -webkit-box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.form-check-input:checked:hover {
    -webkit-box-shadow: 
        0 4px 12px rgba(29, 78, 216, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(29, 78, 216, 0.4) !important;
            box-shadow: 
        0 4px 12px rgba(29, 78, 216, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(29, 78, 216, 0.4) !important;
}

/* Focus states for general switches */
.form-check-input:focus {
    outline: none !important;
    -webkit-box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.form-check-input:checked:focus {
    -webkit-box-shadow: 
        0 0 0 3px rgba(29, 78, 216, 0.4),
        0 2px 8px rgba(29, 78, 216, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
            box-shadow: 
        0 0 0 3px rgba(29, 78, 216, 0.4),
        0 2px 8px rgba(29, 78, 216, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.form-check-label {
    font-weight: 700 !important;
    color: #1f2937 !important;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    margin-left: 0.5rem !important;
}

/* ================================
   MODAL ENHANCEMENTS
   ================================ */

.modal-content {
    border: none;
    border-radius: 20px;
    -webkit-box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
            box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #0ea5e9 50%, #0284c7 75%, #0369a1 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    -webkit-box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.99)), to(rgba(248, 250, 252, 0.99)));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 1.5rem;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(248, 250, 252, 0.95)), to(rgba(241, 245, 249, 0.90)));
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.90) 100%);
}

.btn-close {
    -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* ================================
   TOAST NOTIFICATIONS ENHANCEMENTS
   ================================ */

.toast {
    border: none;
    border-radius: 15px;
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.bg-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
    -webkit-box-shadow: 
        0 15px 35px rgba(5, 150, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 15px 35px rgba(5, 150, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.toast.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%) !important;
    -webkit-box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
            box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ================================
   EDIT MODE ENHANCEMENTS
   ================================ */

.border-warning {
    border-color: #f59e0b !important;
    -webkit-box-shadow: 
        0 0 0 0.25rem rgba(245, 158, 11, 0.25),
        0 4px 12px rgba(245, 158, 11, 0.3) !important;
            box-shadow: 
        0 0 0 0.25rem rgba(245, 158, 11, 0.25),
        0 4px 12px rgba(245, 158, 11, 0.3) !important;
    -webkit-animation: editPulse 2s infinite;
            animation: editPulse 2s infinite;
}

@-webkit-keyframes editPulse {
    0%, 100% { 
        -webkit-box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.25),
            0 4px 12px rgba(245, 158, 11, 0.3); 
                box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.25),
            0 4px 12px rgba(245, 158, 11, 0.3);
    }
    50% { 
        -webkit-box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.5),
            0 4px 12px rgba(245, 158, 11, 0.6); 
                box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.5),
            0 4px 12px rgba(245, 158, 11, 0.6);
    }
}

@keyframes editPulse {
    0%, 100% { 
        -webkit-box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.25),
            0 4px 12px rgba(245, 158, 11, 0.3); 
                box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.25),
            0 4px 12px rgba(245, 158, 11, 0.3);
    }
    50% { 
        -webkit-box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.5),
            0 4px 12px rgba(245, 158, 11, 0.6); 
                box-shadow: 
            0 0 0 0.25rem rgba(245, 158, 11, 0.5),
            0 4px 12px rgba(245, 158, 11, 0.6);
    }
}