/* ========================================
   Admin Dashboard Styles
   Purple Theme Matching Organizer Auth
   ======================================== */

/* Override AdminLTE defaults */

body,
h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Nunito Sans", 'Open Sans', sans-serif !important;
}

.skin-blue .main-sidebar {
    background: white !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    width: 260px;
}

.skin-blue .sidebar-menu>li {
    border: 1px solid #F3F4F6;
    margin: 0 10px 5px;
    border-radius: 12px;
    overflow: hidden;
}

.skin-blue .sidebar-menu>li:last-child {
    border-bottom: none;
}

.skin-blue .sidebar-menu>li>a {
    padding: 16px 20px;
    color: #6B7280 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.skin-blue .sidebar-menu>li>.btn {
    padding: 16px 20px;
    color: #6B7280 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* Active/Hover State - Purple */
.skin-blue .sidebar-menu>li.active>a,
.skin-blue .sidebar-menu>li>a:hover {
    background: #8E07B0 !important;
    color: #fff !important;
    border-left-color: #8E07B0;
}

/* Dashboard Button - Full Purple */
.skin-blue .sidebar-menu>li.active.dashboard-item>a {
    background: #8E07B0 !important;
    color: white !important;
    border-radius: 12px;
    margin: 0 12px;
    border-left: none !important;
}

.skin-blue .sidebar-menu>li.dashboard-item>a i {
    color: inherit;
    font-size: 18px;
}

/* Logo Area */
.skin-blue .main-header .logo {
    background: #8E07B0 !important;
    border-bottom: 1px solid #F3F4F6;
    padding: 0px 15px;
}

.skin-blue .main-header .logo:hover {
    background: #8E07B0 !important;
}

/* Navbar */
.skin-blue .main-header .navbar {
    background: #8E07B0 !important;
    border-bottom: 1px solid #F3F4F6;
}

/* Sidebar Icons */
.skin-blue .sidebar-menu>li>a>.fa {
    color: #6B7280;
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.skin-blue .sidebar-menu>li.active>a>.fa,
.skin-blue .sidebar-menu>li>a:hover>.fa {
    color: #fff !important;
}

/* Help & Settings at Bottom */
.sidebar-bottom-menu {
    position: absolute;
    bottom: 80px;
    width: 100%;
    padding: 0;
}

.sidebar-bottom-menu li>a {
    padding: 14px 20px !important;
}

/* Logout Button */
.logout-button {
    /* position: absolute; */
    /* bottom: 20px; */
    left: 20px;
    right: 20px;
}

.logout-button a {
    background: #FF000033 !important;
    color: #FF0000 !important;
    border-radius: 12px;
    text-align: center;
    padding: 12px !important;
    font-weight: 600;
    border-left: none !important;
    width: 100%;
}

.logout-button .btn {
    color: #FF0000 !important;
}

.logout-button a:hover {
    background: #FF000033 !important;
}

.logout-button a i {
    color: #FF0000 !important;
    margin-right: 8px;
}

/* Content Wrapper */
.content-wrapper {
    background: #F9FAFB !important;
    margin-left: 260px;
}

/* Dashboard Cards - Purple Theme */
.dashboard-container {
    padding: 24px !important;
}

.subscription-container {
    background: #EFEFEF;
}

.metric-card {
    border: 2px solid #8e2ad6;
    border-radius: 16px;
    padding: 24px;
    background: #faf7ff;
}

.metric-card i {
    font-size: 32px;
    color: #8E07B0;
    margin-bottom: 12px;
    display: block;
}

.metric-card p {
    color: #8E07B0;
    font-weight: 600;
    font-size: 20px;
    margin: 12px 0 8px 0;
}

.metric-card h2 {
    font-size: 48px;
    font-weight: 300;
    color: #1F2937;
    margin: 4px 0 0 0;
}

/* Metrics Row Grid */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-section img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8E07B0;
}

.profile-section h3 {
    margin: 0;
    color: #8E07B0;
    font-weight: 700;
    font-size: 18px;
}

.profile-section p {
    margin: 4px 0 0;
    color: #6B7280;
    font-size: 13px;
}

.profile-section .fa-star {
    color: #F59E0B;
}

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

/* Stats Cards */
.quick-stats {
    margin-bottom: 32px;
}

.quick-stats h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1.5px solid #E6E6E6;
}

.stat-card p {
    color: #8E07B0;
    font-size: 15px;
    margin: 0 0 12px;
    font-weight: 600;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card .text-muted {
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 400;
}

.stat-card h3 {
    color: #1F2937;
    margin: 0;
    font-size: 32px;
    font-weight: 300;
}

/* Timeline Sections */
.timeline-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.timeline-box {
    background: #F3F3F3;
    border-radius: 18px;
    padding: 24px;
    /* border: 1px solid #E5E7EB; */
}

.timeline-box h4 {
    color: #1F2937;
    font-weight: 700;
    margin: 0 0 20px;
    font-size: 18px;
}

/* Activity Timeline Items */
.timeline-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border: 1px solid #E2E2E2 !important;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
}

.timeline-item:last-child {
    /* border-bottom: none; */
    /* padding-bottom: 0; */
    /* margin-bottom: 0; */
}

.timeline-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #8E07B0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.timeline-content {
    flex: 1;
}

.timeline-content .title {
    margin: 0;
    color: #1F2937;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.timeline-content .subtitle {
    margin: 2px 0 0;
    color: #6B7280;
    font-size: 12px;
    line-height: 1.4;
}

.timeline-content .time {
    color: #9CA3AF;
    font-size: 11px;
    margin-top: 4px;
    display: inline-block;
}

.empty-state {
    color: #9CA3AF;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

/* Header Profile Section */
.dashboard-header,
.current-plan-card {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-plan-card {
    display: block;
}

.header-actions .btn-primary {
    background: #8E07B0;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.header-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 39, 214, 0.3);
    text-decoration: none;
}

/* Notification Badge */
.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #8E07B0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-circle:hover {
    background: #7020B8;
}

.btn-circle span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 767px) {
    #dataTableBuilder_wrapper>.dt-buttons.btn-group {
        display: flex;
        align-items: stretch;
        justify-content: space-evenly;
        flex-wrap: wrap;
        align-content: stretch;
    }

    .skin-blue .main-sidebar {
        width: 230px;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .metrics-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .timeline-sections {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   Organizer Settings Page Styles
   ======================================== */

/* Settings Page Container */
.settings-container {
    display: flex;
    min-height: 100vh;
    background: #F9FAFB;
}

/* Settings Sidebar */
.settings-sidebar {
    width: 250px;
    background: white;
    padding: 30px 20px;
    border-right: 1px solid #E5E7EB;
}

.settings-sidebar .tab-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #1F2937;
    transition: all 0.3s;
}

.settings-sidebar .tab-link i {
    margin-right: 12px;
    width: 20px;
}

.settings-sidebar .tab-link:hover {
    background: rgba(142, 7, 176, 0.1) !important;
}

.settings-sidebar .tab-link.active {
    background: #8E07B0;
    color: white;
}

.settings-sidebar .tab-link.active:hover {
    background: #8E07B0 !important;
}

/* Settings Content Area */
.settings-content {
    flex: 1;
    padding: 30px 40px;
}

.settings-content .tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Profile Section */
.profile-photo-section {
    margin-bottom: 40px;
}

.profile-photo-section>div {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-photo-section img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8E07B0;
}

.upload-photo-btn {
    display: inline-block;
    background: #8E07B0;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.upload-photo-btn:hover {
    background: #6b0685;
}

.form-control {
    border-radius: 8px;
    height: 42px;
    box-shadow: none;
    border-color: #d2d6de;
}

/* Form Grids */
.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.settings-form-grid .full-width {
    grid-column: 1 / -1;
}

.settings-form-label {
    display: block;
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.settings-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.settings-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    resize: vertical;
}

/* Stripe Connect */
.stripe-connected {
    background: #ECFDF5;
    border: 1px solid #10B981;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stripe-connected p:first-child {
    margin: 0;
    font-weight: 600;
    color: #065F46;
}

.stripe-connected p:last-child {
    margin: 4px 0 0;
    font-size: 13px;
    color: #047857;
}

.stripe-not-connected {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
}

.stripe-not-connected p:first-child {
    margin: 0 0 12px;
    font-weight: 600;
    color: #92400E;
}

.stripe-not-connected p:nth-child(2) {
    margin: 0 0 16px;
    font-size: 13px;
    color: #78350F;
}

.stripe-connect-btn {
    display: inline-block;
    background: #8E07B0;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Notifications Toggle Switches */
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
}

.notification-item p:first-child {
    margin: 0;
    font-weight: 600;
    color: #1F2937;
}

.notification-item p:last-child {
    margin: 4px 0 0;
    font-size: 13px;
    color: #9CA3AF;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: .4s;
    border-radius: 28px;
}

.toggle-switch .slider span {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.slider {
    background-color: #8E07B0;
}

.toggle-switch input:checked+.slider span {
    transform: translateX(24px);
}

/* Delete Account Warning */
.delete-warning {
    background: #FEE2E2;
    border: 1px solid #DC2626;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

.delete-warning p:first-child {
    margin: 0;
    color: #991B1B;
    font-weight: 600;
}

.delete-warning p:last-child {
    margin: 12px 0 0;
    color: #991B1B;
    font-size: 14px;
}

/* Buttons */
.btn-settings-primary {
    background: #8E07B0;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.btn-settings-primary:hover {
    background: #6b0685;
}

.btn-settings-danger {
    background: #DC2626;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

.btn-settings-danger:hover {
    background: #B91C1C;
}

.btn-settings-full {
    width: 100%;
}

/* Settings Headings */
.settings-heading {
    color: #1F2937;
    font-weight: 700;
    margin: 0 0 8px;
}

.settings-subheading {
    color: #6B7280;
    margin: 0 0 30px;
}

.settings-section-heading {
    color: #1F2937;
    font-weight: 600;
    margin: 0 0 20px;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }

    .settings-content {
        padding: 20px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-tabs a.active:hover,
.sidebar-tabs a.active:focus {
    color: #fff !important;
}

a.btn.btn-default[aria-controls='dataTableBuilder'] {
    margin: 2px;
}

.select2-container--bootstrap .select2-selection--multiple {
    min-height: 42px;
    padding: 0;
    height: auto;
}

.select2-container--bootstrap .select2-selection {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    outline: 0;
}

.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin: 5px 0 0 6px;
    padding: 4px 6px;
}

select.input-sm[name="dataTableBuilder_length"] {
    height: 42px;
    line-height: 42px;
}