/* Organizer Dashboard Styles */

/* Tab Panes */
.org-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.org-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-row h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--primary-blue);
}

.filter-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Call Button Styles */
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #28a745;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-call:hover {
    background-color: #218838;
    color: white;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

/* Managed Events Grid */
.managed-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Event Stat Card */
.event-stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 5px solid var(--primary-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-stat-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

.event-stat-header .status-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 15px;
    text-transform: capitalize;
    width: auto;
}

.event-stat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-stat-body .stat-main {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.event-stat-body .stat-big {
    text-align: center;
    flex: 1;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.event-stat-body .stat-big .label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.event-stat-body .stat-big .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.event-stat-body .stat-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.event-stat-actions {
    margin-top: 15px;
    text-align: right;
}

.event-stat-actions .btn-secondary {
    width: auto;
    font-size: 0.85rem;
    padding: 8px 15px;
}

/* Financial Balance Card */
.financial-balance-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.financial-balance-card .balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-balance-card .balance-item .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.financial-balance-card .balance-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}
.financial-balance-card .balance-item.total-earnings {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
}
.financial-balance-card .balance-item.total-earnings .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Organizer Profile Page */
.corporate-profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue), #1a237e);
}

.profile-header-content {
    padding: 0 30px 25px;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    margin-top: -50px;
}

.profile-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.logo-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    transition: transform 0.2s;
}

.logo-edit-badge:hover {
    transform: scale(1.1);
}

.profile-logo-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-title-area h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-blue);
}


/* Stat Icon Backgrounds */
.stat-pending-bg {
    background: #fff8e1;
    color: #f9a825;
}
.stat-active-bg {
    background: #e3f2fd;
    color: var(--primary-blue);
}
.stat-completed-bg {
    background: #e8f5e9;
    color: #34a853;
}

/* Simple CSS Bar Chart */
.stats-chart-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.simple-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    padding-top: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    height: 100%;
    justify-content: flex-end;
}
.bar-fill {
    width: 30px;
    border-radius: 5px 5px 0 0;
    transition: height 0.6s ease;
}
.bar-fill.pending { background: #f9a825; }
.bar-fill.active { background: var(--primary-blue); }
.bar-fill.completed { background: #34a853; }
.bar-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    position: absolute;
    bottom: -25px;
}

/* Redesigned Sales Log */
.sales-log-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ddd;
}
.sales-log-item.status-border-valid { border-left-color: var(--primary-blue); }
.sales-log-item.status-border-used { border-left-color: #34a853; }

.sales-log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.event-name { font-weight: 600; color: var(--dark-gray); }
.sale-time { font-size: 0.75rem; color: #999; }

.sales-log-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}
.sales-log-details i { color: #aaa; width: 14px; }

.status-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.sales-log-actions { display: flex; gap: 8px; }

/* Collaborator Card Design */
.collaborator-card {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.collaborator-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.collaborator-info {
    flex-grow: 1;
}

.collaborator-name {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.collaborator-email {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.collaborator-role {
    margin-top: 8px;
}

.collaborator-role .status-tag {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.collaborator-role .status-tag.status-owner { background-color: #ffe0b2; color: #e65100; } /* Orange for owner */
.collaborator-role .status-tag.status-manager { background-color: #bbdefb; color: var(--primary-blue); } /* Blue for manager */
.collaborator-role .status-tag.status-co-manager { background-color: #c8e6c9; color: #2e7d32; } /* Green for co-manager */
.collaborator-role .status-tag.status-scanner { background-color: #ffcdd2; color: #c62828; } /* Red for scanner */

.collaborator-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.collaborator-actions .owner-badge {
    font-size: 0.85rem;
}

/* Organizer Public Profile Page */
.organizer-public-profile-page .profile-card {
    text-align: center;
    padding: 30px;
}

.organizer-public-profile-page .profile-logo-lg {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.organizer-public-profile-page .profile-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}
.organizer-public-profile-page .profile-card p {
    margin-bottom: 10px;
}

.public-organizer-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* QR Scanner Styling */
#qr-reader {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
}