/*
Theme Name: Admin Dashboard KICK TICk
Theme URI: 
Author: Fitore Gashi
Author URI: 
Description: A custom WordPress theme with login and dashboard 
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-dashboard-theme
*/

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Login page styles */
body.page-template-page-login {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* Option 1: Use SVG as main background */
    background: url('images/BG.svg') center center/cover no-repeat;
    
    /* Option 2: SVG with gradient overlay (uncomment to use) */
    /* background: 
        linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(124, 58, 237, 0.8) 50%, rgba(37, 99, 235, 0.8) 100%),
        url('images/your-background.svg') center center/cover no-repeat; */
    
    /* Option 3: Keep gradient, add SVG as pattern (uncomment to use) */
    /* background: 
        linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%),
        url('images/your-background.svg') center center/cover no-repeat;
    background-blend-mode: overlay; */
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hide header and footer on login page */
body.page-template-page-login .site-header,
body.page-template-page-login .site-footer {
    display: none;
}

/* Make main content full height on login page */
body.page-template-page-login .site-main {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    margin: 20px;
    min-height: 500px; /* Prevent container jumping */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure form container maintains structure */
.login-container > * {
    flex-shrink: 0;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED, #2563EB);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

.login-logo {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 80px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-subtitle {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 32px 0;
    text-align: center;
}

/* WordPress login form styling */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#loginform p {
    margin: 0;
}

#loginform label {
    display: none; /* Hide all labels since we're using placeholders */
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    outline: none;
    border-color: #1C71EF;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: normal;
}

/* Style the WordPress login button */
#loginform input[type="submit"] {
    width: 100%;
    padding: 16px 20px;
    background: #1C71EF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: none;
}

#loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, #4338CA 0%, #1C71EF 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

#loginform input[type="submit"]:active {
    transform: translateY(0);
}

/* Remember me checkbox styling */
#loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

#loginform .forgetmenot input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #4F46E5;
}

#loginform .forgetmenot label {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: normal;
    display: inline;
    text-align: left;
}

/* Hide the default WordPress login styling */
.login h1 {
    display: none;
}


/* Remove default margins from WordPress login */
.login #loginform p.submit {
    margin: 0;
    padding: 0;
}

/* Links styling */
#loginform a {
    color: #1C71EF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

#loginform a:hover {
    color: #1C71EF;
    text-decoration: underline;
}

.page-title-section  {
    padding: 20px 24px;
    padding-left: 52px;
    
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 24px 20px;
        margin: 12px;
        border-radius: 16px;
        max-width: 90%;
    }
    
    .login-logo {
        max-width: 160px;
        max-height: 60px;
        margin-bottom: 12px;
    }
    
    .login-subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    /* Mobile error and success messages */
    .login-error, .login-success {
        padding: 12px 16px;
        margin-bottom: 20px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .login-error i, .login-success i {
        font-size: 14px;
    }
    
    /* Mobile form inputs */
    #loginform input[type="text"],
    #loginform input[type="password"],
    #forgot-password-form input[type="email"] {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 10px;
    }
    
    /* Mobile submit buttons */
    #loginform input[type="submit"],
    #forgot-password-form input[type="submit"] {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
        margin-top: 6px;
    }
    
    /* Mobile forgot password text */
    .forgot-password-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    /* Mobile form links */
    .forgot-password-link,
    .back-to-login-link {
        margin-top: 12px;
    }
    
    .forgot-password-link a,
    .back-to-login-link a {
        font-size: 13px;
    }
    
    /* Mobile remember me checkbox */
    #loginform .forgetmenot {
        margin: 12px 0;
        gap: 6px;
    }
    
    #loginform .forgetmenot label {
        font-size: 13px;
        color: #6b7280;
        display: inline;
    }
    
    /* Adjust form spacing on mobile */
    #loginform, #forgot-password-form {
        gap: 16px;
    }
    
    #loginform p, #forgot-password-form p {
        margin: 0;
    }
}

/* Medium screen responsive styles */
@media (max-width: 640px) and (min-width: 480px) {
    .login-container {
        padding: 32px 28px;
        margin: 16px;
        max-width: 95%;
    }
    
    .login-logo {
        max-width: 180px;
        max-height: 70px;
    }
    
    .login-subtitle {
        font-size: 22px;
    }
    
    .login-error, .login-success {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    #loginform input[type="text"],
    #loginform input[type="password"],
    #forgot-password-form input[type="email"] {
        padding: 15px 18px;
    }
    
    #loginform input[type="submit"],
    #forgot-password-form input[type="submit"] {
        padding: 15px 18px;
    }
}

/* Original login styles for other pages if needed */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    padding: 10px;
    background: #1C71EF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover {
    background: #1C71EF;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 50px; 

 
}

/* Global Dashboard Header */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    padding: 0 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 34px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease;
}

.notification-btn:hover {
    background: #f3f4f6;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #6b7280;
}

/* Sidebar */
.dashboard-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 80px); /* Adjust for header height */
    left: 0;
    top: 80px; /* Position below header */
    z-index: 1000;
}

.sidebar-header {
    display: none; /* Hide since logo is now in header */
}

.logo {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1C71EF;
    letter-spacing: -0.025em;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0 0 0; /* Start from top since no header */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 4px;
}


.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 25px 25px 0;
    margin-right: 20px;
    transition: all 0.2s ease;
    min-height: 48px;
}

.nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-item.active .nav-link {
    background: #4880FF;
    color: white;
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.nav-link span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto; /* Push to bottom */
}

.logout-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.logout-link:hover {
    color: #374151;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 235px;
    display: flex;
    flex-direction: column;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.purple {
    background: #ede9fe;
}

.stat-icon.yellow {
    background: #fef3c7;
}

.stat-icon.green {
    background: #d1fae5;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

.change-icon {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.change-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

/* Loading States for Stats */
.stat-loading {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chart Section */
.chart-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-toggle {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-toggle-btn {
    padding: 1.25rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

}

.chart-toggle-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.chart-toggle-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.chart-toggle-btn.active {
    background: #1C71EF;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.chart-toggle-btn.active img {
    filter: brightness(0) invert(1);
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.month-selector {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
}

.chart-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-container canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
    display: block !important;
}

/* Events Page Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.events-container {
    background: none;
    border: none;
}
.event-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.event-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.event-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.event-status.active {
    background: #d1fae5;
    color: #059669;
}

.event-status.draft {
    background: #fef3c7;
    color: #d97706;
}

.event-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.event-description {
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.event-price {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.event-tickets {
    font-size: 14px;
    color: #6b7280;
}

/* Content Sections */
.content-section {

    overflow: hidden;

}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
   

    flex-wrap: wrap;
    gap: 15px;
}
.section-header h1 {
    padding-bottom: 20px;}

.section-header h2, .section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.header-content h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.page-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #4F46E5;
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.btn-link {
    background: transparent;
    color: #4F46E5;
    border: none;
    padding: 8px 0;
}

.btn-link:hover {
    color: #4338CA;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #4F46E5;
    border: 1px solid #4F46E5;
}

.btn-outline:hover {
    background: #4F46E5;
    color: white;
    text-decoration: none;
}

/* Event Details */
.event-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.event-actions {
    display: flex;
    gap: 12px;
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Empty States */
.no-data, .error-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-data h3, .error-state h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1f2937;
}

/* Search and Filters */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 40px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-width: 350px;
    width: 100%;
    max-width: 450px;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #6b7280;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Orders Stats */
.orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Filters Section */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.export-actions {
    display: flex;
    gap: 12px;
}

/* Orders Table Container */
.orders-table-container {
    padding: 0 24px;
    /* Removed max-height and overflow for natural scrolling */
}

/* Orders Table */
.orders-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    width: 100%;
    border-collapse: collapse;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    /* Removed sticky positioning for better mobile compatibility */
}

.orders-table td {
    font-size: 14px;
    color: #6b7280;
    border-bottom: 1px solid #f1f5f9;
}

.orders-table tr:hover {
    background: #f8fafc;
}

.order-id {
    font-weight: 600;
    color: #1f2937;
}

.order-total {
    font-weight: 600;
    color: #1f2937;
}

/* Price Badge */
.price-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Origin Badges */
.origin-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.origin-badge.origin-woocommerce {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #c7d2fe;
}

.origin-badge.origin-direct {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.origin-badge.origin-tickera {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.origin-badge.origin-unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.status-failed {
    background: #fecaca;
    color: #7f1d1d;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.btn-pagination {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    font-size: 14px;
}

.btn-pagination:hover {
    background: #f3f4f6;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Order Links */
.order-link {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
}

.order-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border: 2px solid #1e90ff;
    border-radius: 20px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #374151;
}

.modal-body {
    padding: 20px 30px;
}

.ticket-details-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.attendee-section {
    width: 70%;

    margin-bottom: 20px;
    padding: 16px;


}

.billing-section {
    width: 70%;
    padding: 16px;
    background-color: #f0fdf4;
    border-radius: 8px;
    border-left: 4px solid #10B981;
}

.order-section {
    width: 30%;
    margin-left: 80px;
    margin-top: 15px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
    font-size: 16px;
}

.info-line {
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;
}

.info-label {
    font-weight: bold;
}

.order-title {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.view-ticket-btn {
    background-color: #1e90ff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: bold;
    margin: 7px 0;
    font-size: 14px;
    min-width: 120px;
}

.view-ticket-btn:hover {
    background-color: #1c7ed6;
}

.view-ticket-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.order-details-info {
    text-align: left;
  
}

.order-details-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #000;
}

.highlight {
    color: #1e90ff;
    font-weight: bold;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile responsive styles for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
      
    }
    
    .close-modal {
        right: 20px;
    }
    
    .modal-body {
        padding: 16px 20px;
        padding-top: 50px;
    }
    
    .ticket-details-new {
        flex-direction: column;
        gap: 0px;
    }
    
    .attendee-section,
    .billing-section,
    .order-section {
        width: 100%;
        margin-left: 0px;
        margin-top: -30px;
    }
    
    .order-section {
        text-align: center;
    }
    
    .order-details-info {
        text-align: left;
        margin-left: 20px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .order-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .view-ticket-btn {
        padding: 10px 20px;
        font-size: 12px;
        margin: 16px 0;
        display: none;
    }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .orders-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        margin: 0;
    }
    
    .stat-card {
        padding: 16px;
        min-width: 0; /* Prevent overflow */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
        margin-bottom: 12px;
        font-size: 12px;
    }
    
    .filters-section {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-container {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filters {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .export-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .export-actions .btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    /* Transform table into card layout on mobile */
    .orders-table-container {
        padding: 0 16px;
        padding-top: 20px;
    }
    
    .orders-table {
        border: none;
        background: transparent;
    }
    
    .orders-table thead {
        display: none; /* Hide table headers on mobile */
    }
    
    .orders-table tbody {
        display: block;
    }
    
    .orders-table tr {
        display: block;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .orders-table tr:hover {
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .orders-table td {
        display: block;
        border: none;
        padding: 0;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .orders-table td:last-child {
        margin-bottom: 0;
    }
    
    /* Add labels before each data item */
    .orders-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 4px;
    }
    
    /* Style individual elements in mobile cards */
    .orders-table td:first-child {
        position: absolute;
        top: 16px;
        right: 16px;
        margin: 0;
    }
    
    .orders-table td:first-child:before {
        display: none;
    }
    
    .orders-table td:first-child .order-link {
        background: #f3f4f6;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        padding: 5px;
    }
    
    /* Event info styling in mobile cards */
    .event-info {
        margin-bottom: 8px;
    }
    
    .event-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        line-height: 1.3;
        margin-bottom: 4px;
        padding-top: 15px;
    }
    
    .event-id {
        font-size: 11px;
        color: #6b7280;
    }
    
    /* Attendee and buyer info styling in mobile cards */
    .attendee-info, .buyer-info {
        margin-bottom: 8px;
    }
    
    .attendee-name, .buyer-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }
    
    .attendee-email, .buyer-email {
        font-size: 12px;
        color: #6b7280;
        word-break: break-all;
    }

    /* Customer info styling in mobile cards */
    .customer-info {
        margin-bottom: 8px;
    }
    
    .customer-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }
    
    .customer-email {
        font-size: 12px;
        color: #6b7280;
        word-break: break-all;
    }
    
    /* Organizer info styling in mobile cards */
    .organizer-info {
        margin-bottom: 8px;
    }
    
    .organizer-name {
        font-size: 13px;
        font-weight: 600;
        color: #1f2937;
    }
    
    /* Date, ticket type, and status styling */
    .orders-table td:nth-child(5) {
        font-size: 13px;
        color: #374151;
        font-weight: 500;
    }
    
    .ticket-type-badge {
        font-size: 11px;
        padding: 4px 8px;
        background: #f3f4f6;
        border-radius: 6px;
        font-weight: 500;
        color: #374151;
        display: inline-block;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
        padding-top: 50px;
    }
    
    .pagination-container {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .events-grid {
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .section-actions {
        width: 100%;
        justify-content: stretch;

    }
    
    .page-title-section {
        padding: 16px 16px 16px 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    /* Dashboard layout adjustments for mobile */
    .dashboard-content {
        padding: 16px;
    }
}

/* Medium mobile screens */
@media (max-width: 640px) {
    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .filters-section {
        padding: 16px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .export-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 8px;
    }
}

/* Large mobile screens / small tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 16px;
    }
    
    .stat-card {
        padding: 20px 16px;
        text-align: center;
    }
    
    .filters-section {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-container {
        flex: 1;
        min-width: 200px;
    }
    
    .filters {
        flex: 2;
        min-width: 300px;
    }
    
    .export-actions {
        flex: 1;
        min-width: 200px;
        justify-content: flex-end;
    }
    
    .orders-table-container {
        padding: 0 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-layout {
        padding-top: 40px; /* Smaller header on mobile */
        padding-bottom: 80px; /* Add space for bottom nav */
    }
    
    .dashboard-header {
        padding: 0 16px;
        height: 70px; /* Smaller header height on mobile */
    }
    
    .header-logo {
        height: 28px; /* Smaller logo on mobile */
    }
    
    /* Mobile header adjustments */
    .header-actions {
        gap: 8px;
    }
    
    .user-info {
        display: none; /* Hide user info text on mobile to save space */
    }
    
    .user-avatar img {
        width: 35px;
        height: 35px;
    }
    
    /* Show mobile logout button on mobile */
    .mobile-logout {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #f3f4f6;
        color: #6b7280;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 16px;
    }
    
    .mobile-logout:hover {
        background: #e5e7eb;
        color: #374151;
        text-decoration: none;
    }
    
    /* Transform sidebar into bottom navigation */
    .dashboard-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 80px !important;
        background: white !important;
        border-right: none !important;
        border-top: 1px solid #e5e7eb !important;
        display: flex !important;
        flex-direction: row !important;
        z-index: 1000 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        margin-left: 0 !important;
    }
    
    .sidebar-nav {
        flex: 1 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .nav-menu {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: space-around !important;
        align-items: center !important;
        list-style: none !important;
    }
    
    .nav-item {
        flex: 1 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .nav-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        min-height: 60px !important;
        width: 100% !important;
        max-width: 80px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #6b7280;
    }
    
    .nav-link:hover {
        background: transparent !important;
        color: #4880FF !important;
    }
    
    .nav-item.active .nav-link {
        background: transparent !important;
        color: #4880FF !important;
        position: relative;
    }
    
    .nav-item.active .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: #4880FF;
        border-radius: 0 0 3px 3px;
    }
    
    .nav-icon {
        margin-right: 0 !important;
        margin-bottom: 4px !important;
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .nav-icon svg {
        width: 22px !important;
        height: 22px !important;
        display: block !important;
    }
    
    .nav-link span {
        font-size: 10px !important;
        text-align: center !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        margin-top: 2px !important;
    }
    
    /* Hide logout in main nav on mobile, move to hamburger menu or profile */
    .sidebar-footer {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
        margin-bottom: 80px !important; /* Space for bottom nav */
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .dashboard-content {
        padding: 16px;
        padding-bottom: 20px; /* Extra space above bottom nav */
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile stat card layout fixes */
    .stat-card {
        padding: 20px 16px !important;
        text-align: center !important;
    }
    
    .stat-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .stat-title {
        order: 2 !important;
        text-align: center !important;
        margin: 0 !important;
        font-size: 14px !important;
    }
    
    .stat-icon {
        order: 1 !important;
        margin-bottom: 0 !important;
    }
    
    .stat-value {
        font-size: 28px !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
    
    .stat-change {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* CHART RESPONSIVENESS FIXES */
    .chart-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        margin-top: 16px !important;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .chart-controls {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    
    .chart-toggle {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .chart-toggle-btn {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 12px 12px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .chart-toggle-btn img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .month-selector {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        margin-bottom: 16px !important;
    }
    
    .chart-container canvas {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        display: block !important;
         max-height: 540px !important;
    }
    
    .chart-title {
        font-size: 18px !important;
        text-align: center !important;
    }
    
    .chart-subtitle {
        font-size: 16px !important;
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    /* Additional chart responsiveness */
    #revenue-chart, #tickets-chart {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }
    
    /* Chart containers specific mobile fixes */
    #revenue-chart-container, #tickets-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Force chart responsiveness */
    .chart-container {
        position: relative !important;
        height: 300px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .chart-container canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }
}

/* Additional mobile bottom nav styles for smaller screens */
@media (max-width: 480px) {
    .dashboard-layout {
        padding-bottom: 75px; /* Slightly smaller bottom nav */
    }
    
    .dashboard-sidebar {
        height: 75px;
    }
    
    .nav-link {
        min-height: 55px;
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-link span {
        font-size: 9px;
        margin-top: 2px;
    }
    
    .dashboard-main {
        margin-bottom: 75px;
    }
    
    /* Ensure main content doesn't get hidden behind bottom nav */
    .dashboard-content {
        padding-bottom: 25px;
    }
    
    /* Make navigation items more compact */
    .nav-link {
        max-width: 70px;
    }
}

/* Enhanced Event Cards */
.event-card-enhanced {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-card-enhanced:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card-enhanced:hover .event-image {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px;
}

.event-status .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.status-completed {
    color: #059669;
    background: rgba(209, 250, 229, 0.95);
}

.status-badge.status-pending {
    color: #d97706;
    background: rgba(254, 243, 199, 0.95);
}

.status-badge.status-draft {
    color: #6b7280;
    background: rgba(243, 244, 246, 0.95);
}

.event-content {
    padding: 24px;
}

.event-header {
    margin-bottom: 16px;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-revenue {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.event-date i, .event-location i {
    font-size: 16px;
    padding-top: 5px;
}

.tickets-info {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tickets-info .tickets-sold,
.tickets-info .tickets-total {
    font-weight: 700;
    color: #1f2937;
}

.tickets-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tickets-left {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.event-actions {
    margin-top: 20px;
}

.manage-btn {
    width: 100%;
    padding: 14px 20px;
    background: #1C71EF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.manage-btn:hover {
   
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.manage-btn:active {
    transform: translateY(0);
}

.manage-btn i {
    font-size: 18px;
}

/* Responsive Design for Event Cards */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-card-enhanced {
        margin: 0 8px;
    }
    
    .event-image-container {
        height: 160px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .event-revenue {
        font-size: 14px;
    }
}

/* Hide mobile logout on desktop */
.mobile-logout {
    display: none;
}

/* Make navigation items more compact */

/* Extra small screen chart fixes */
.chart-section {
    padding: 12px !important;
}

.chart-container {
    padding: 18px !important;
}

.chart-container canvas {
    height: 280px !important;
}

.chart-toggle-btn {
    padding: 10px 10px !important;
    font-size: 12px !important;
}

/* Force mobile navigation visibility */
.dashboard-sidebar {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Smaller chart containers for very small screens */
.chart-container {
    height: 350px !important;
    padding: 8px !important;
    margin-bottom: 12px !important;
}

.chart-container canvas {
  
    height: 280px !important;
    padding: 10px !important;

}

/* Responsive chart controls for very small screens */
.chart-controls {
    gap: 8px !important;
}

.chart-toggle-btn {
    padding: 8px 8px !important;
    font-size: 11px !important;
    min-height: 40px !important;
}

.month-selector {
    padding: 8px !important;
    font-size: 12px !important;
}

/* Override any later CSS that might hide mobile logout */
.mobile-logout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 16px !important;
}

/* Hide mobile logout on desktop only */
@media (min-width: 769px) {
    .mobile-logout {
        display: none !important;
    }
}

/* Chart Loading States */
.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.chart-loading p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.chart-container {
    position: relative;
}

/* Enhanced ticket details mobile styles */
.ticket-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ticket-header h4 {
    font-size: 20px;
}

.info-section {
    padding: 16px;
    margin-bottom: 16px;
}

.info-section h5 {
    font-size: 14px;
    margin-bottom: 12px;
}

.detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.detail-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.detail-item strong {
    font-size: 11px;
}

.detail-item span {
    font-size: 13px;
}

.detail-item .ticket-code,
.detail-item .ticket-checksum {
    font-size: 11px;
    padding: 6px 8px;
    word-break: break-all;
}

.raw-data-content pre {
    font-size: 10px !important;
    padding: 12px !important;
    max-height: 200px !important;
}

/* Login error and success messages */
.login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fecaca;
}

.login-error i {
    font-size: 16px;
    flex-shrink: 0;
}

.login-success {
    background: #d1fae5;
    color: #059669;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #a7f3d0;
}

.login-success i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Forgot password form styles */
#forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ensure both forms have consistent structure */
#loginform, #forgot-password-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure form paragraphs maintain structure */
#loginform p, #forgot-password-form p {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Form input consistency */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="submit"],
#forgot-password-form input[type="email"],
#forgot-password-form input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Form transition improvements */
#loginform, #forgot-password-form {
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 300px; /* Prevent container jumping */
}

/* Ensure remember me checkbox maintains structure */
#loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    width: 100%;
}

#loginform .forgetmenot input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

#loginform .forgetmenot label {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: normal;
    display: block;
}

/* Links styling consistency */
.forgot-password-link, .back-to-login-link {
    text-align: center;
    margin: 16px 0 0 0;
    width: 100%;
}

.forgot-password-link a, .back-to-login-link a {
    display: inline-block;
    width: auto;
    text-align: center;
}

/* Forgot password text styling */
.forgot-password-text {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

/* Forgot password link styling */
.forgot-password-link a {
    color: #1C71EF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: #1C71EF;
    text-decoration: underline;
}

/* Back to login link styling */
.back-to-login-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.back-to-login-link a:hover {
    color: #374151;
    text-decoration: none;
}

/* Enhanced form input styles for forgot password */
#forgot-password-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

#forgot-password-form input[type="email"]:focus {
    outline: none;
    border-color: #1C71EF;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#forgot-password-form input[type="email"]::placeholder {
    color: #9ca3af;
    font-weight: normal;
}

/* Enhanced submit button for forgot password */
#forgot-password-form input[type="submit"] {
    width: 100%;
    padding: 16px 20px;
    background: #1C71EF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: none;
}

#forgot-password-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #4338CA 0%, #1C71EF 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

#forgot-password-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Enhanced login form submit button (consistent with forgot password) */
#loginform input[type="submit"] {
    background: #1C71EF;
}

#loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, #4338CA 0%, #1C71EF 100%);
}
#wpadminbar {
    display: none !important;
}