/* Zest Events - Custom Styles */

:root {
    --zest-primary: #ff6b6b;
    --zest-primary-dark: #ff5252;
    --zest-secondary: #2c3e50;
    --zest-light: #f8f9fa;
    --zest-dark: #333;
    --zest-text: #555;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--zest-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--zest-dark);
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    background-color: #fff !important;
    position: relative;
    z-index: 1001;
}

.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid var(--zest-primary);
    transition: border-color 0.3s ease;
}

.user-dropdown {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background-color: var(--zest-light);
}

.user-dropdown span {
    font-weight: 600;
    color: var(--zest-dark) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--zest-primary);
    border-color: var(--zest-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--zest-primary-dark);
    border-color: var(--zest-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: var(--zest-secondary);
    border-color: var(--zest-secondary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    color: var(--zest-primary);
    border-color: var(--zest-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--zest-primary);
    border-color: var(--zest-primary);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    color: var(--zest-dark);
}

/* Home Page - Authenticated */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.welcome-banner h3 {
    color: white;
    font-weight: 700;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--zest-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 120px;
}

.quick-action-card i {
    font-size: 2.5rem;
    color: var(--zest-primary);
    margin-bottom: 0.5rem;
}

.quick-action-card span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
    border-color: var(--zest-primary);
}

.quick-action-card:hover i {
    transform: scale(1.1);
}

/* Upcoming Events */
.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcoming-event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.upcoming-event-card:hover {
    border-color: var(--zest-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
    transform: translateX(5px);
}

/* Quick Action Buttons (compact) */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: var(--zest-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--zest-primary);
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-action-btn:hover {
    border-color: var(--zest-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

/* Announcements */
.announcement-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.announcement-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.announcement-pinned {
    border-left: 4px solid var(--zest-primary);
    background: #fff5f5;
}

.announcement-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.announcement-content {
    line-height: 1.8;
}

.announcement-content h1,
.announcement-content h2,
.announcement-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.announcement-content ul,
.announcement-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.announcement-content p {
    margin-bottom: 1rem;
}

.announcement-content a {
    color: var(--zest-primary);
    text-decoration: underline;
}

.announcement-content a:hover {
    color: var(--zest-primary-dark);
}

/* Home Banner - Public */
.private-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0;
    text-align: center;
    color: white;
}

.private-banner h1 {
    color: white;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.private-banner .lead {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
}

.private-banner .btn-light {
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.private-banner .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .welcome-banner {
        padding: 1.5rem;
    }
    
    .welcome-banner h3 {
        font-size: 1.5rem;
    }
    
    .quick-action-card {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .quick-action-card i {
        font-size: 2rem;
    }
    
    .quick-action-card span {
        font-size: 0.8rem;
    }
    
    .private-banner h1 {
        font-size: 2.5rem;
    }
    
    .private-banner .lead {
        font-size: 1.1rem;
    }
}

/* Forms */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--zest-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--zest-dark);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--zest-light);
    color: var(--zest-primary);
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Profile Page */
.rounded-circle {
    border: 4px solid var(--zest-primary);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bg-danger {
    background-color: var(--zest-primary) !important;
}

/* Check-in Page Styles */
.uscita-number {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--zest-primary);
    padding: 1rem 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    display: inline-block;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2);
    animation: pulse 2s infinite;
    border: 2px solid var(--zest-primary);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#reader {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
}

.scanner-container {
    display: none;
    margin-bottom: 15px;
}

#guest-details .card {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert {
    animation: fadeIn 0.5s ease;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
}

.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 999;
    padding-top: 70px;
}

.sidebar-toggle {
    color: var(--zest-dark);
    padding: 0;
    text-decoration: none;
}

.sidebar-toggle:hover {
    color: var(--zest-primary);
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--zest-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.sidebar-link:hover {
    background-color: var(--zest-light);
    color: var(--zest-primary);
    padding-left: 2rem;
}

.sidebar-link.active {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--zest-primary);
    border-left: 3px solid var(--zest-primary);
}

.sidebar-divider {
    margin: 1rem 1.5rem;
    border-color: #e0e0e0;
}

.sidebar-heading {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

/* Content wrapper */
.content-wrapper {
    min-height: calc(100vh - 70px);
}

/* Desktop layout with sidebar */
@media (min-width: 992px) {
    .content-wrapper {
        margin-left: 280px;
    }
}

/* Bottom Navigation Bar (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: var(--zest-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--zest-primary);
}

.bottom-nav-item svg,
.bottom-nav-item i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    margin-bottom: 0.25rem;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* PWA Install Banner */
#pwa-install-banner {
    display: none;
    background: var(--zest-primary);
    color: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.35);
}

#pwa-install-banner button {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
}

#pwa-install-button {
    background: #fff;
    color: var(--zest-primary);
}

#pwa-install-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .private-banner h1 {
        font-size: 2.5rem;
    }
    
    .private-banner .lead {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Hide hamburger button on mobile */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Keep navbar items visible on mobile */
    .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: flex;
    }
    
    /* Add padding to main content to avoid bottom nav overlap */
    main {
        padding-bottom: 70px;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        margin-right: 0.5rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        margin-right: 4px;
    }
    
    .user-dropdown {
        padding: 0.25rem 0.5rem !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .user-dropdown span {
        font-size: 0.8rem !important;
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }
    
    .dropdown-toggle::after {
        margin-left: 0.25rem !important;
        vertical-align: middle !important;
    }
    
    /* Force navbar to stay on one line */
    .navbar > .container {
        flex-wrap: nowrap !important;
    }
    
    .ms-auto {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}

/* Event Detail - Mobile First */
.info-box {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.stat-box {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--zest-primary);
}

.stat-box-success i {
    color: #28a745;
}

.guest-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.guest-card.checked-in {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.guest-card.checked-in strong {
    color: #155724;
}

.guest-card.checked-in::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.guest-card {
    position: relative;
}

.guest-card.guest-cancelled {
    background: #fff5f5;
    border-color: #f5c6cb;
    opacity: 0.7;
}

.guest-card.guest-cancelled strong {
    text-decoration: line-through;
    color: #999;
}

.guest-info {
    font-size: 0.9rem;
}

.guest-stats {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.guest-stats .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Nav pills uniformi */
.nav-pills .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    color: #666;
}

.nav-pills .nav-link.active {
    background-color: var(--zest-primary);
    color: white;
}

.nav-pills .nav-link .badge {
    font-size: 0.65rem;
}

/* Input ricerca ospiti */
#guestSearch {
    border-left: none;
}

.input-group-text {
    border-right: none;
}

/* Spinner per loading */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive event detail */
@media (min-width: 768px) {
    .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Profile Page - Mobile First */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--zest-primary);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.profile-info-box {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.profile-contact-item i {
    font-size: 1.25rem;
    color: var(--zest-primary);
    width: 24px;
    text-align: center;
}

/* Event List - Mobile First */
.events-grid {
    display: grid;
    gap: 0.75rem;
}

.event-card-compact {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-card-compact:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.event-meta-item i {
    color: var(--zest-primary);
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Guest History - Mobile First */
.guest-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.history-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Application Events */
.application-event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.application-event-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Application Cards (Management) */
.application-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.application-card.application-pending {
    border-left: 4px solid #ffc107;
}

.application-card.application-approved {
    border-left: 4px solid #28a745;
    background: #f0fff4;
}

.application-card.application-rejected {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    opacity: 0.8;
}

/* Coordinator Assigned Card */
.coordinator-assigned-card {
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 0.75rem;
}

/* Application Pending Card */
.application-pending-card {
    background: white;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem;
}

/* Sidebar Divider & Heading */
.sidebar-divider {
    margin: 1rem 1.5rem;
    border-color: #e0e0e0;
}

.sidebar-heading {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

/* Applications Management - Kanban Style */
.stat-box-compact {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.stat-box-compact.stat-warning {
    border-left: 4px solid #ffc107;
}

.stat-box-compact.stat-success {
    border-left: 4px solid #28a745;
}

.stat-box-compact.stat-danger {
    border-left: 4px solid #dc3545;
}

.event-kanban-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.event-kanban-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
}

.event-kanban-header h5 {
    color: white;
    margin: 0;
}

.event-kanban-body {
    padding: 1rem;
}

.kanban-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .kanban-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.kanban-column-header {
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #e0e0e0;
}

.kanban-approved .kanban-column-header {
    background: #d4edda;
    color: #155724;
    border-bottom-color: #28a745;
}

.kanban-pending .kanban-column-header {
    background: #fff3cd;
    color: #856404;
    border-bottom-color: #ffc107;
}

.kanban-rejected .kanban-column-header {
    background: #f8d7da;
    color: #721c24;
    border-bottom-color: #dc3545;
}

.kanban-column-body {
    padding: 0.75rem;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
}

.kanban-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

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

.kanban-card-approved {
    border-left: 3px solid #28a745;
}

.kanban-card-pending {
    border-left: 3px solid #ffc107;
}

.kanban-card-rejected {
    border-left: 3px solid #dc3545;
    opacity: 0.7;
}

.motivation-box {
    background: #f8f9fa;
    border-left: 3px solid var(--zest-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-style: italic;
}

/* Drag and Drop */
.kanban-card[draggable="true"] {
    cursor: move;
}

.drag-handle {
    cursor: grab;
    color: #999;
}

.drag-handle:active {
    cursor: grabbing;
}

.kanban-column-body.drag-over {
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed var(--zest-primary);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.toast-error {
    background: #dc3545;
}

.toast-notification.toast-warning {
    background: #ffc107;
    color: #000;
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 90px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Pivot Table */
.pivot-table {
    font-size: 0.8rem;
    background: white;
}

.pivot-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
}

.pivot-table tbody td {
    vertical-align: middle;
    padding: 0.25rem;
}

.pivot-table tbody td:nth-child(1) {
    font-weight: 600;
    min-width: 120px;
}

.pivot-table tbody td:nth-child(2),
.pivot-table tbody td:nth-child(3) {
    font-size: 0.7rem;
    min-width: 60px;
}

.pivot-table tbody td:nth-child(4),
.pivot-table tbody td:nth-child(5) {
    font-size: 0.7rem;
    min-width: 70px;
}

.pivot-cell {
    min-width: 80px;
    max-width: 120px;
}

.pivot-table .badge {
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
}

.pivot-select {
    font-size: 0.75rem;
    padding: 0.25rem;
    width: 100%;
}

/* City View Container */
.city-view-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.city-kanban-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.city-kanban-header {
    background: var(--zest-primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.text-zest {
    color: var(--zest-primary);
}

.bg-zest {
    background-color: var(--zest-primary);
}

/* Admin Button */
.admin-button {
    background-color: var(--zest-primary);
    border-color: var(--zest-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.admin-button:hover {
    background-color: var(--zest-primary-dark);
    border-color: var(--zest-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Logout Form Button */
#logout-form button {
    background: none !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: left !important;
    font-weight: 500 !important;
    color: inherit !important;
}

#logout-form button:hover {
    background-color: var(--zest-light) !important;
    color: var(--zest-primary) !important;
    padding-left: 2rem !important;
}

/* Event Date Detail - Guest Cards */
.guest-card-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.guest-card-item:last-child {
    border-bottom: none;
}

.guest-card-item.is-checked {
    background-color: rgba(25, 135, 84, 0.12);
    border-left: 3px solid #198754;
}

.guest-card-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.guest-card-item.is-checked:hover {
    background-color: rgba(25, 135, 84, 0.15);
}

.guest-card-item.is-cancelled {
    background-color: rgba(220, 53, 69, 0.08);
    border-left: 3px solid #dc3545;
    opacity: 0.75;
}

.guest-card-item.is-cancelled:hover {
    background-color: rgba(220, 53, 69, 0.12);
}

.guest-card-item.is-cancelled .qr-mini {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.min-width-0 {
    min-width: 0;
}

.qr-mini {
    flex-shrink: 0;
}

.qr-mini img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Check-in Page - Mobile First */
.checkin-container {
    padding: 0.5rem;
    max-width: 100%;
}

.date-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.date-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.date-item:active {
    transform: scale(0.98);
}

.checkin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.checkin-header-title {
    font-size: 0.8rem;
    opacity: 0.85;
}

.checkin-header-info {
    font-size: 1rem;
    font-weight: bold;
}

.counter-badge {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.scanner-btn {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.checkin-btn {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.code-input {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.processing-overlay.show {
    display: flex;
}

.processing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.similar-events-badge {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.similar-events-label {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .checkin-container {
        max-width: 500px;
        margin: 0 auto;
        padding: 1rem;
    }
}

/* Guest Notes Button */
.btn-notes {
    background: none;
    border: none;
    padding: 0;
    color: #856404;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-notes:hover {
    color: #533f03;
    text-decoration: none;
    transform: translateX(2px);
}

.btn-notes i {
    font-size: 1rem;
}
