/* Swar Digital Custom Dashboard Styles - Bootstrap Based */

:root {
    --swar-primary: #0d6efd;
    --swar-secondary: #f3f7fa;
    --swar-sidebar-width: 260px;
    --swar-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --swar-text-muted: #747d8c;
    --swar-orange: #ff9f1c;
    --swar-purple-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --swar-input-bg: #eef4ff;
}

body {
    background-color: var(--swar-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Main Sidebar & Overlay Z-Index Fix */
#sidebar-wrapper {
    z-index: 9999 !important;
    height: 100vh;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

#sidebar-overlay {
    z-index: 9998 !important;
}

.navbar-custom {
    z-index: 1000 !important;
}

/* Main Content Area */
#page-content-wrapper {
    margin-left: var(--swar-sidebar-width);
    width: calc(100% - var(--swar-sidebar-width));
    transition: all 0.3s ease-in-out;
}

.navbar-custom {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-page-title {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Responsiveness Media Queries */
@media (max-width: 1023.98px) {
    #sidebar-wrapper {
        transform: translateX(-100%);
    }

    #page-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    #wrapper.toggled #sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .navbar-custom {
        padding: 0.75rem 1rem;
    }

    .stat-card {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .stat-card .value {
        font-size: 1.25rem;
    }

    .stat-card .label {
        font-size: 0.65rem;
    }

    .stat-card .icon-container {
        width: 36px;
        height: 36px;
    }

    .stat-card .icon-container i {
        font-size: 1rem;
    }

    .navbar-custom h1 {
        font-size: 1.1rem;
    }

    .container-fluid.p-4 {
        padding: 1rem !important;
    }

    .content-card {
        padding: 1rem;
        border-radius: 12px;
    }

    /* Release Creation Specific Resets for mobile */
    .create-step {
        padding: 10px;
    }

    .pricing-tier-card {
        margin-bottom: 15px;
    }

    /* Auth Card Responsive */
    .auth-card,
    .auth-card.wide {
        padding: 25px;
        border-radius: 16px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-title {
        font-size: 22px;
    }

    .reg-section-title {
        font-size: 13px;
        margin-top: 20px;
    }
}

.navbar-custom h1 {
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--swar-card-shadow);
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.stat-card .info {
    flex: 1;
}

.stat-card .label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--swar-text-muted);
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--swar-primary);
}

.stat-card .icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(21, 101, 216, 0.1);
}

.stat-card .icon-container i {
    color: var(--swar-primary);
    font-size: 1.25rem;
}

/* Icon Container Variations */
.stat-card .icon-container.icon-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.stat-card .icon-container.icon-info i {
    color: #0dcaf0;
}

.stat-card .icon-container.icon-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.stat-card .icon-container.icon-success i {
    color: #198754;
}

.stat-card .icon-container.icon-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.stat-card .icon-container.icon-warning i {
    color: #ffc107;
}

.stat-card .icon-container.icon-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.stat-card .icon-container.icon-danger i {
    color: #dc3545;
}

.stat-card .icon-container.icon-primary {
    background-color: rgba(21, 101, 216, 0.1);
}

.stat-card .icon-container.icon-primary i {
    color: var(--swar-primary);
}

.swar-table thead th {
    background-color: #f8fbff !important;
    border-bottom: 1px solid #edf2f9 !important;
    color: #888;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 1.2rem 1rem !important;
}

/* Management Portal & Auth Branding */
.swar-portal-bg {
    background: linear-gradient(180deg, #6475fb 0%, #7d57b2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.portal-container,
.auth-card {
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img,
.auth-logo svg,
.logo-header img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(100, 117, 251, 0.25);
    object-fit: contain;
    background-color: white;
}

.portal-container {
    max-width: 800px;
    text-align: center;
}

.portal-row {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    justify-content: center;
}

.portal-card {
    flex: 1;
    background: #f8fbff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #edf2f9;
    transition: transform 0.3s;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-card {
    max-width: 440px;
}

.auth-card.wide {
    max-width: 1000px;
}

.portal-title {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 5px;
}

.portal-subtitle {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Form Controls - Exact Match */
.form-label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #dce4f1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--swar-input-bg);
}

.password-field-group .form-control {
    padding-right: 50px;
}

.form-control:focus,
.form-select:focus {
    border-color: #6475fb;
    box-shadow: 0 0 0 3px rgba(100, 117, 251, 0.1);
    background-color: white;
}

/* Password Group */
.password-field-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6475fb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    white-space: nowrap;
}

/* Registration Sections */
.reg-section-title {
    color: #2b67f6;
    font-weight: 800;
    font-size: 14px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    line-height: 1.5;
}

.check-item i {
    width: 18px;
    font-size: 14px;
}

.check-item .fa-facebook {
    color: #1877F2;
}

.check-item .fa-instagram {
    color: #E4405F;
}

.check-item .fa-spotify {
    color: #1DB954;
}

.check-item .fa-soundcloud {
    color: #FF3300;
}

.check-item .fa-twitter {
    color: #1DA1F2;
}

.check-item .fa-youtube {
    color: #FF0000;
}

.check-item .fa-tiktok {
    color: #000000;
}

/* Privacy Box */
.privacy-box {
    background-color: #dcf2f9;
    border-radius: 12px;
    padding: 15px;
    font-size: 11px;
    color: #2b67f6;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-swar {
    background: linear-gradient(135deg, #6c5ce7, #5a4acf);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 800;
    text-transform: capitalize;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-swar:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.extra-links-footer {
    margin-top: 20px;
    text-align: center;
}

.footer-website-link {
    margin-top: 30px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* Global Utilities */
.artwork-preview {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Recent Releases Card */
.content-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--swar-card-shadow);
    margin-top: 2rem;
}

.card-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header-actions h2 {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
}

.btn-upload {
    background-color: var(--swar-orange);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upload:hover {
    background-color: #e68a00;
    color: white;
}

.view-all-link {
    color: #6f42c1;
    font-weight: 700;
    text-decoration: none;
}

/* Table Design */
.swar-table thead th {
    background: transparent;
    border: none;
    color: #bfc5d1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
    padding: 1rem;
}

.swar-table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

/* Settings & Profile Implementation */
.settings-section-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #edf2f9;
    overflow: hidden;
    margin-bottom: 25px;
}

.settings-card-header {
    background-color: #f8fbff;
    padding: 15px 25px;
    border-bottom: 1px solid #edf2f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-header h2 {
    color: #1565D8;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    text-transform: capitalize;
}

.settings-card-header i {
    color: #1565D8;
    font-size: 16px;
}

.settings-card-body {
    padding: 25px;
}

/* User Profile Sidebar Card */
.user-profile-summary-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid #edf2f9;
    margin-bottom: 25px;
}

.avatar-upload-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f4ff;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #1565D8;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.user-profile-summary-card h3 {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 5px;
}

.user-profile-summary-card .tagline {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-badge-active {
    background-color: #e6f9f0;
    color: #198754;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
    display: inline-block;
    margin-bottom: 20px;
}

.user-meta-info {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf2f9;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.meta-label {
    color: #888;
    font-weight: 600;
}

.meta-value {
    color: #333;
    font-weight: 700;
}

/* Plan Card */
.plan-details-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #edf2f9;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.plan-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565D8;
}

.plan-header-info h4 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.plan-header-info .plan-status {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.plan-usage-list {
    margin-bottom: 20px;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 13px;
}

.usage-label {
    color: #666;
    font-weight: 600;
}

.usage-value {
    font-weight: 800;
    color: #333;
}

.btn-upgrade {
    color: #6c5ce7;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* Document Upload Grid */
.doc-upload-card {
    border: 1px solid #edf2f9;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.doc-header i {
    font-size: 16px;
    color: #1565D8;
}

.doc-header span {
    font-size: 12px;
    font-weight: 800;
    color: #333;
}

.file-input-wrapper {
    margin-top: 15px;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
    border: 1px dashed #dce4f1;
}

.btn-file-select {
    background: #6c5ce7;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    text-transform: capitalize;
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--swar-text-muted);
}

/* Support Center Specifics */
.support-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.support-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.support-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.btn-create-ticket {
    background-color: #0d6efd;
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border: none;
}

.btn-create-ticket:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.2);
}

.support-empty-card {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f4f8;
}

.support-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.support-empty-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.support-empty-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Modal Enhancements */
.modal-content.elite-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header.elite-header {
    border-bottom: 1px solid #f0f4f8;
    padding: 20px 25px;
}

.modal-title.elite-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
}

.modal-body.elite-body {
    padding: 25px;
}

.elite-modal .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}

.elite-modal .form-control,
.elite-modal .form-select {
    background-color: #f8fbff;
    border: 1px solid #dce4f1;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.elite-modal .form-control:focus,
.elite-modal .form-select:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.elite-modal .form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Custom File Upload Button */
.btn-choose-file {
    background-color: #6c5ce7;
    color: white;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-choose-file:hover {
    background-color: #5a4acf;
    color: white;
}

.file-upload-wrapper {
    background-color: transparent;
    border: 1px solid #dce4f1;
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}