/* Dashboard Styles */
.org-dashboard-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: 'Inter', sans-serif;
}

.org-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: fit-content;
}

.org-main {
    flex: 1;
    min-width: 0;
}

.org-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.org-menu-item:hover,
.org-menu-item.active {
    background: #026cdf;
    color: #fff;
}

.org-menu-item .dashicon {
    margin-right: 10px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    margin: 0;
    font-size: 28px;
    color: #026cdf;
    font-weight: 700;
}

.stat-info p {
    margin: 5px 0 0;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 36px;
    color: #e0f2fe;
}

/* Table Styles */
.events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.events-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #eee;
    font-size: 13px;
}

.events-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 13px;
    color: #333;
}

.events-table tr:last-child td {
    border-bottom: none;
}

.breakdown-row td {
    background: #fcfcfc;
    color: #666;
    font-size: 12px;
    padding-left: 30px;
    border-bottom: 1px dashed #eee;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-publish {
    background: #dcfce7;
    color: #166534;
}

.status-draft {
    background: #f3f4f6;
    color: #4b5563;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

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

/* Progress Bar */
.sales-progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.sales-stats {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
}

.sales-pct {
    color: #888;
    font-size: 11px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #026cdf;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.org-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    margin: 0;
    color: #333;
}

/* Form Styling */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

/* Explicitly target inputs within our container to override theme defaults */
.org-form-container input[type="text"],
.org-form-container input[type="email"],
.org-form-container input[type="password"],
.org-form-container input[type="number"],
.org-form-container input[type="date"],
.org-form-container input[type="datetime-local"],
.org-form-container textarea,
.org-form-container select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    font-family: inherit;
    transition: border-color 0.2s;
    height: auto !important;
    /* Fix potential theme height restrictions */
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
}

.org-form-container input:focus,
.org-form-container textarea:focus {
    border-color: #026cdf !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 108, 223, 0.1) !important;
}

.org-form-container .button,
.org-form-container input[type="submit"] {
    background: #026cdf !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px !important;
    width: 100%;
    /* Make buttons full width in stacked forms */
    margin-top: 10px;
    text-transform: none !important;
    /* Remove potential theme caps */
}

.org-form-container .button:hover,
.org-form-container input[type="submit"]:hover {
    background: #004ea3 !important;
}

/* Authorization / Login Styles */
.org-auth-container {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Smoother shadow */
    overflow: hidden;
    border: 1px solid #e5e7eb;
    /* Subtle border */
    font-family: 'Inter', sans-serif;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab-btn {
    flex: 1;
    padding: 18px;
    border: none;
    background: #f9fafb;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    /* default hidden border */
    transition: all 0.2s;
    font-family: inherit;
}

.auth-tab-btn.active {
    background: #fff;
    color: #026cdf;
    /* Theme Blue */
    border-bottom: 3px solid #026cdf;
}

.auth-tab-btn:hover:not(.active) {
    background: #f0f0f0;
    color: #333;
}

.auth-content {
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 700;
}

.auth-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Re-use input styles but scoped */
.org-auth-container input[type="text"],
.org-auth-container input[type="password"],
.org-auth-container input[type="email"],
.org-auth-container input[type="number"] {
    width: 100% !important;
    /* Force width */
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    font-family: inherit;
    transition: all 0.2s;
    background: #f9fafb !important;
    /* Light tint */
    margin-bottom: 0 !important;
    display: block !important;
    height: auto !important;
    line-height: normal !important;
}

.org-auth-container input:focus {
    background: #fff !important;
    border-color: #026cdf !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 108, 223, 0.1) !important;
}

.org-auth-container .form-group {
    margin-bottom: 20px;
}

.org-auth-container label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.org-auth-container .button,
.org-auth-container input[type="submit"] {
    background: #026cdf !important;
    color: #fff !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s;
    font-size: 16px !important;
    width: 100% !important;
    text-transform: none !important;
    box-shadow: 0 4px 6px rgba(2, 108, 223, 0.2) !important;
    display: block !important;
}

.org-auth-container .button:hover,
.org-auth-container input[type="submit"]:hover {
    background: #004ea3 !important;
}

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.auth-footer-links label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
}

.auth-footer-links input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    transform: scale(1.1);
}

.auth-footer-links a {
    color: #026cdf;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .org-dashboard-wrapper {
        flex-direction: column;
    }

    .org-sidebar {
        flex: auto;
        width: 100%;
        box-sizing: border-box;
    }

    /* Stat Cards */
    .stat-cards {
        grid-template-columns: 1fr;
    }

    /* Form Rows Stack */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    /* Ticket Rows */
    .ticket-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ticket-row>div {
        flex: 1 1 100% !important;
    }

    .ticket-row input[type="checkbox"] {
        transform: scale(1.5);
        margin-left: 5px;
    }

    /* Responsive Table (Card View) */
    .events-table thead {
        display: none;
    }

    .events-table,
    .events-table tbody,
    .events-table tr,
    .events-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .events-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .events-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f9f9f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .events-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        font-size: 11px;
        text-align: left;
    }

    /* Hide Breakdown rows entirely on mobile for simplicity or style differently */
    .breakdown-row {
        display: none !important;
    }

    .org-form-container {
        padding: 20px;
    }

    /* Auth Mobile */
    .org-auth-container {
        margin: 20px 10px;
        box-shadow: none;
        border: 1px solid #efefef;
    }

    .auth-content {
        padding: 25px 20px;
    }
}