:root {
    --primary-color: #007bff;
    /* Un blu vibrante */
    --bg-color: #ffffff;
    /* Tema chiaro */
    --card-bg: #f8f9fa;
    --text-color: #212529;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
    --light-text: #ffffff;

    /* Dark theme colors */
    --dark-bg: #212529;
    --dark-card-bg: #1a1d21;
    --dark-text: #ffffff;
    --dark-muted: #adb5bd;
    --dark-border: rgba(255, 255, 255, 0.1);
    --dark-hover: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar-light {
    background-color: var(--card-bg) !important;
}

.navbar-dark {
    background-color: #212529 !important;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--text-color) !important;
}

.navbar-dark .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.card {
    background-color: var(--card-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--text-color);
}

.text-muted {
    color: var(--muted-text) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-success {
    font-weight: 600;
}

.form-control {
    background-color: #ffffff;
    border-color: #dee2e6;
    color: var(--text-color);
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-label {
    color: var(--muted-text);
}

.alert-success {
    background-color: #198754;
    color: white;
    border: none;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

footer {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

footer.bg-dark {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {

    /* General mobile improvements */
    body {
        font-size: 16px;
        line-height: 1.5;
        padding: 0;
    }

    /* Navbar improvements */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        border-color: var(--primary-color);
    }

    .navbar-toggler-icon {
        background-color: var(--primary-color);
    }

    /* Card improvements */
    .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Button improvements */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        display: block;
    }

    .btn-group .btn {
        width: auto;
        margin-right: 0.5rem;
    }

    /* Form improvements */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    /* Table improvements */
    .table {
        font-size: 0.9rem;
    }

    .table td,
    .table th {
        padding: 0.5rem;
    }

    /* Container improvements */
    .container {
        padding: 0 1rem;
    }

    .container-fluid {
        padding: 0 1rem;
    }

    /* Row and column improvements */
    .row {
        margin: 0 -0.5rem;
    }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }

    /* Alert improvements */
    .alert {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        font-size: 0.9rem;
    }



    /* Navigation improvements */
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Progress bar improvements */
    .progress {
        height: 1rem;
        border-radius: 0.5rem;
    }

    /* Footer improvements */
    footer {
        padding: 2rem 0;
        text-align: center;
    }

    footer .row {
        margin: 0;
    }

    footer .col {
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Specific mobile optimizations */
    .navbar-collapse {
        background-color: var(--card-bg);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .dropdown-menu {
        width: 100%;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .list-group-item {
        padding: 0.75rem 1rem;
        border-left: none;
        border-right: none;
    }

    /* Touch-friendly elements */
    .btn,
    .nav-link,
    .list-group-item,
    .form-control {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Text improvements for mobile */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 0.75rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Spacing improvements */
    .mt-1,
    .my-1 {
        margin-top: 0.25rem;
    }

    .mt-2,
    .my-2 {
        margin-top: 0.5rem;
    }

    .mt-3,
    .my-3 {
        margin-top: 1rem;
    }

    .mt-4,
    .my-4 {
        margin-top: 1.5rem;
    }

    .mt-5,
    .my-5 {
        margin-top: 3rem;
    }

    .mb-1,
    .my-1 {
        margin-bottom: 0.25rem;
    }

    .mb-2,
    .my-2 {
        margin-bottom: 0.5rem;
    }

    .mb-3,
    .my-3 {
        margin-bottom: 1rem;
    }

    .mb-4,
    .my-4 {
        margin-bottom: 1.5rem;
    }

    .mb-5,
    .my-5 {
        margin-bottom: 3rem;
    }

    .pt-1,
    .py-1 {
        padding-top: 0.25rem;
    }

    .pt-2,
    .py-2 {
        padding-top: 0.5rem;
    }

    .pt-3,
    .py-3 {
        padding-top: 1rem;
    }

    .pt-4,
    .py-4 {
        padding-top: 1.5rem;
    }

    .pt-5,
    .py-5 {
        padding-top: 3rem;
    }

    .pb-1,
    .py-1 {
        padding-bottom: 0.25rem;
    }

    .pb-2,
    .py-2 {
        padding-bottom: 0.5rem;
    }

    .pb-3,
    .py-3 {
        padding-bottom: 1rem;
    }

    .pb-4,
    .py-4 {
        padding-bottom: 1.5rem;
    }

    .pb-5,
    .py-5 {
        padding-bottom: 3rem;
    }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .form-control {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Large phones and small tablets (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {
    .btn {
        width: auto;
        display: inline-block;
        margin-right: 0.5rem;
    }

    .btn-group .btn {
        margin-right: 0.25rem;
    }

    .col-md-6,
    .col-md-4,
    .col-md-3,
    .col-md-8,
    .col-md-12 {
        margin-bottom: 1rem;
    }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
}



/* Better touch feedback */
.btn:active,
.nav-link:active,
.list-group-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Accessibility and visibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus improvements for better navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better contrast for accessibility */
.text-muted {
    color: var(--muted-text) !important;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Better error messages */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Success messages */
.success-message {
    color: #155724;
    background-color: #d4edda;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Better navigation indicators */
.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 0.5rem;
}

/* Improved card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Better table styling */
.table-hover tbody tr:hover {
    background-color: var(--card-bg);
}

/* Improved pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Better tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Improved forms */
.form-select {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Better badges */
.badge-primary {
    background-color: var(--primary-color);
}

/* Better progress indicators */
.progress-bar {
    background-color: var(--primary-color);
}

/* Improved list styling */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Better accordion styling */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

/* Better carousel styling */
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
}





/* Better dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--card-bg);
    color: var(--primary-color);
}

/* Better alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
    color: #856404;
}

.alert-info {
    border-left-color: #0dcaf0;
    color: #055160;
}

/* Better button variants */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Better input group styling */
.input-group-text {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Better navbar improvements */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #212529 !important;
}

/* Dark navbar with white text */
.navbar-dark {
    background-color: #212529 !important;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar dropdown improvements */
.navbar-dark .dropdown-menu {
    background-color: #212529 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar-dark .dropdown-item {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
}

.navbar-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Better footer styling */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    background-color: #212529 !important;
    color: #ffffff !important;
    border-top: 2px solid var(--primary-color);
}

footer.bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer h3,
footer h4,
footer h5 {
    color: #ffffff !important;
    font-weight: bold;
}

footer a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Footer list improvements */
footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Social media icons in footer */
footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

/* Sidebar navigation improvements */
.sidebar {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
}

.sidebar .sidebar-header {
    background-color: #1a1d21 !important;
    color: #ffffff !important;
    padding: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Admin dashboard navigation */
.admin-nav {
    background-color: #212529 !important;
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-nav .nav-link {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.admin-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.admin-nav .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* User menu improvements */
.user-menu .dropdown-menu {
    background-color: #212529 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu .dropdown-item {
    color: #ffffff !important;
}

.user-menu .dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Breadcrumb improvements */
.breadcrumb {
    background-color: #212529 !important;
    color: #ffffff !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.breadcrumb-item {
    color: #ffffff !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #ffffff !important;
}

.breadcrumb-item.active {
    color: var(--primary-color) !important;
}

/* Pills and tabs improvements */
.nav-pills .nav-link {
    color: #ffffff !important;
    background-color: #212529 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color);
}

/* Tab improvements */
.nav-tabs .nav-link {
    color: #ffffff !important;
    background-color: #212529 !important;
    border-color: #212529;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color);
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #212529 !important;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .navbar-dark .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0.25rem;
    }

    .navbar-dark .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-dark .dropdown-menu {
        background-color: #1a1d21 !important;
        margin-top: 0.5rem;
    }

    .sidebar {
        background-color: #212529 !important;
        color: #ffffff !important;
    }

    .sidebar .nav-link {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    footer {
        background-color: #212529 !important;
        color: #ffffff !important;
    }

    footer .container {
        padding: 2rem 1rem;
    }

    .user-menu .dropdown-menu {
        background-color: #212529 !important;
    }

    .admin-nav {
        background-color: #212529 !important;
    }

    .breadcrumb {
        background-color: #212529 !important;
        color: #ffffff !important;
    }

    .nav-pills .nav-link {
        background-color: #212529 !important;
        color: #ffffff !important;
    }

    .nav-tabs .nav-link {
        background-color: #212529 !important;
        color: #ffffff !important;
    }
}

/* Better breadcrumb styling */
.breadcrumb {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--muted-text);
}

/* Better code styling */
code {
    background-color: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

pre {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Better blockquote styling */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--muted-text);
}

/* Better figure styling */
.figure {
    margin-bottom: 1rem;
}

.figure-caption {
    color: var(--muted-text);
    font-size: 0.875rem;
}

/* Event Action Buttons */
.event-action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.event-action-buttons .btn {
    flex: 1;
    min-width: 100px;
}

/* Edit Workout Button Group */
.btn-group .btn {
    border-radius: 0.375rem;
    margin-right: 0.25rem;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Calendar event interactions */
.fc-event {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Edit form improvements */
#editEventForm .form-control,
#editEventForm .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

#editEventForm .form-control:focus,
#editEventForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}



/* Responsive action buttons */
@media (max-width: 576px) {
    .event-action-buttons {
        flex-direction: column;
    }

    .event-action-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Event details styling */
.event-detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.event-detail-item:last-child {
    border-bottom: none;
}

.event-detail-label {
    font-weight: 600;
    color: var(--muted-text);
    display: inline-block;
    min-width: 80px;
}

.event-detail-value {
    color: var(--text-color);
}

/* Loading state for calendar */
.calendar-loading {
    opacity: 0.6;
    pointer-events: none;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced button states */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Event interaction improvements */
.fc-event {
    cursor: pointer;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}



/* Loading state for edit form */
.form-control:disabled,
.form-select:disabled {
    background-color: var(--border-color);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success feedback */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-color: #f8f9fa;
}

/* Error feedback */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Calendar interaction improvements */
.fc-event-title {
    font-weight: 600;
}

.fc-event-time {
    font-size: 0.875em;
    opacity: 0.8;
}

/* Drag and drop feedback */
.fc-event.dragging {
    opacity: 0.7;
    cursor: grabbing;
}

.fc-drop-indicator {
    background-color: var(--primary-color);
    height: 3px;
    border-radius: 2px;
    margin: 2px 0;
}

/* RunningFast Runner Icon */
.runner-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}

.runner-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 4px;
    left: 12px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.runner-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: var(--primary-color);
    top: 15px;
    left: 8px;
    transform: rotate(-15deg);
    border-radius: 1px;
}

.runner-icon .runner-body {
    position: absolute;
    width: 10px;
    height: 12px;
    background-color: var(--primary-color);
    top: 10px;
    left: 11px;
    border-radius: 2px;
    transform: rotate(5deg);
}

.runner-icon .runner-arm-left {
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-color);
    top: 12px;
    left: 6px;
    transform: rotate(45deg);
    border-radius: 1px;
}

.runner-icon .runner-arm-right {
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-color);
    top: 14px;
    left: 16px;
    transform: rotate(-30deg);
    border-radius: 1px;
}

.runner-icon .runner-leg-left {
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-color);
    top: 20px;
    left: 10px;
    transform: rotate(20deg);
    border-radius: 1px;
}

.runner-icon .runner-leg-right {
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: var(--primary-color);
    top: 22px;
    left: 14px;
    transform: rotate(-25deg);
    border-radius: 1px;
}

/* Alternative simple runner icon */
.runner-simple {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}

.runner-simple::before {
    content: '🏃';
    position: absolute;
    font-size: 24px;
    top: 2px;
    left: 2px;
    animation: run 2s ease-in-out infinite;
}

/* Runner animation */
@keyframes run {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(2px) translateY(-2px);
    }

    50% {
        transform: translateX(4px) translateY(0);
    }

    75% {
        transform: translateX(2px) translateY(2px);
    }
}

/* SVG Runner Icon - More professional */
.runner-svg {
    display: inline-block;
    width: 120px;
    height: 60px;
    margin-right: 15px;
    vertical-align: middle;
    fill: var(--primary-color);
    stroke: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.2));
}

/* Navbar brand with runner icon */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-dark .runner-svg {
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

/* Hover effects for runner icons */
.runner-icon:hover,
.runner-simple:hover,
.runner-svg:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Mobile responsive runner icons */
@media (max-width: 768px) {
    .runner-icon {
        width: 28px;
        height: 28px;
    }

    .runner-simple {
        width: 24px;
        height: 24px;
    }

    .runner-svg {
        width: 90px;
        height: 45px;
        margin-right: 10px;
    }

    .runner-simple::before {
        font-size: 20px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .runner-icon {
        width: 24px;
        height: 24px;
    }

    .runner-simple {
        width: 20px;
        height: 20px;
    }

    .runner-svg {
        width: 75px;
        height: 38px;
        margin-right: 8px;
    }

    .runner-simple::before {
        font-size: 18px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* Stabilize scrollbar to prevent layout shifts */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden !important;
}

html {
    overflow-y: scroll !important;
}

/* Custom Color Helpers */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.text-purple {
    color: #6f42c1 !important;
}

.bg-orange {
    background-color: #fd7e14 !important;
    color: white;
}

.text-orange {
    color: #fd7e14 !important;
}

.bg-azure {
    background-color: #0dcaf0 !important;
    color: white;
}

.text-azure {
    color: #0dcaf0 !important;
}