/* General Dashboard Styles */
.investround-dashboard-saas {
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    transition: 0.3s;
    position: relative;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 260px;
    background: #004d3a;
    color: #fff;
    padding: 30px 20px;
    flex-shrink: 0;
    border-radius: 0 30px 30px 0;
    transition: 0.3s;
    position: relative;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    max-height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.logo-icon {
    font-size: 28px;
    color: #01bfa5;
}

.dashboard-sidebar h3 {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dashboard-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-sidebar ul li {
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-sidebar ul li i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dashboard-sidebar ul li.active,
.dashboard-sidebar ul li:hover {
    background: #01bfa5;
    color: #004d3a;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(1, 191, 165, 0.2);
}

.dashboard-sidebar ul li.active i,
.dashboard-sidebar ul li:hover i {
    color: #004d3a;
}

/* Main Content Styles */
.dashboard-main {
    flex: 1;
    padding: 40px;
    overflow-x: hidden;
    max-height: 100vh;
    overflow-y: auto;
}

.dashboard-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Strict Hidden Enforcement */
.hidden {
    display: none !important;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-icon {
    font-size: 24px;
    color: #01bfa5;
    background: rgba(1, 191, 165, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.card-top h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #004d3a 0%, #006d52 100%);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.welcome-text h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
}

.welcome-text p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
}

.banner-icon {
    font-size: 120px;
    opacity: 0.1;
    position: absolute;
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.mini-card {
    padding: 25px;
    margin-bottom: 0;
    transition: 0.3s;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.card-value {
    font-size: 26px;
    font-weight: 800;
    margin: 15px 0 20px;
    color: #0f172a;
}

/* Section Content Wrapper */
.section-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.section-text {
    flex: 1;
}

.section-text h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #0f172a;
}

.section-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 25px;
}

.section-image {
    width: 200px;
    height: 200px;
    background: #f1f5f9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-large-icon {
    font-size: 80px;
    color: #01bfa5;
    opacity: 0.8;
}

/* Detailed Content */
.detailed-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.detailed-content h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.detailed-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

/* Status Boxes */
.status-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.status-box.highlight {
    background: rgba(1, 191, 165, 0.05);
    border-color: rgba(1, 191, 165, 0.2);
}

.status-box.success {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.status-box .label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.status-value {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

/* Buttons */
button {
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: #01bfa5;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background: #004d3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 77, 58, 0.15);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
}

/* Info Grid & Items */
.info-grid, .steps-grid, .types-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-item, .step, .type-card, .tip {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.info-item i, .type-card i, .tip i {
    font-size: 24px;
    color: #01bfa5;
    margin-bottom: 15px;
    display: block;
}

.info-item h5, .step h5, .type-card h5 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.info-item p, .step p, .type-card p, .tip p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.step-num {
    width: 32px;
    height: 32px;
    background: #01bfa5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Referrals */
.referral-link-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.copy-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.copy-box input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
}

.referral-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.faq-item h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.faq-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.settings-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.settings-section h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
}

/* Tables */
.transaction-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.transaction-table th {
    background: #f8fafc;
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.action-tag {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-box {
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
}

.chart-box h5 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* BEAUTIFUL MODERN MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px;
    border-radius: 32px;
    width: 480px;
    max-width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15), 
                0 18px 36px -18px rgba(0, 0, 0, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: modalSpring 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes modalSpring {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #01bfa5 0%, #004d3a 100%);
    color: #fff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(1, 191, 165, 0.2);
}

.modal-content h4 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.form-hint {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

#modalClose, #adminLoginClose {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#modalClose:hover, #adminLoginClose:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Modern Form Inputs in Modals */
.modal-content input[type=number],
.modal-content input[type=text],
.modal-content input[type=email],
.modal-content input[type=password],
.modal-content textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    transition: 0.3s;
    box-sizing: border-box;
}

.modal-content input:focus, 
.modal-content textarea:focus {
    border-color: #01bfa5;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(1, 191, 165, 0.1);
}

.modal-content button.actionSubmit,
.modal-content #adminLoginBtn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, #01bfa5 0%, #004d3a 100%);
    box-shadow: 0 10px 25px rgba(0, 77, 58, 0.2);
}

.modal-content button:active {
    transform: scale(0.98);
}

/* Admin Panel Specifics */
.admin-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.admin-icon {
    font-size: 32px;
    color: #01bfa5;
}

.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.stat-item .value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 20px;
    color: #94a3b8;
}

.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.access-denied i {
    font-size: 60px;
    color: #f43f5e;
    margin-bottom: 20px;
    opacity: 0.2;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #004d3a;
    cursor: pointer;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 240px;
    }
    .dashboard-main {
        padding: 30px;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        border-radius: 0;
    }
    .dashboard-sidebar.active {
        left: 0;
    }
    .dashboard-main {
        padding: 90px 20px 30px;
    }
    .section-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .section-image {
        order: -1;
    }
    .welcome-banner {
        padding: 30px;
        text-align: center;
    }
    .welcome-img {
        display: none;
    }
    .action-buttons {
        justify-content: center;
    }
    .referral-stats {
        flex-direction: column;
    }
    .modal-content {
        padding: 35px 25px;
    }
}
