.sid-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sid-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sid-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sid-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.sid-number {
    font-size: 32px;
    font-weight: bold;
}

.sid-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sid-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.sid-section label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

.sid-section input, .sid-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.sid-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-weight: bold;
}

.sid-table {
    width: 100%;
    border-collapse: collapse;
}

.sid-table th, .sid-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sid-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.sid-active {
    background: #d4edda;
    color: #155724;
}

.sid-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}































/* ============================================
   ENHANCED INVESTMENT & DIVIDENDS SECTION
   ============================================ */

/* Investment Cards Container */
.sid-investment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.sid-investment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.sid-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sid-package-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.sid-package-amount {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.sid-package-amount small {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}

.sid-plan-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.sid-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sid-status-active {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sid-status-completed {
    background: #6b7280;
    color: white;
}

/* Card Body */
.sid-card-body {
    padding: 24px;
}

/* Stats Grid Inside Card */
.sid-dividend-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sid-stat-item {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #fde68a;
}

.sid-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 8px;
}

.sid-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #d97706;
}

.sid-stat-value small {
    font-size: 12px;
    font-weight: normal;
}

/* Progress Bar */
.sid-progress-container {
    margin: 20px 0;
}

.sid-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.sid-progress-bar {
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 8px;
}

.sid-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

/* Daily Dividends Section */
.sid-daily-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #a7f3d0;
}

.sid-daily-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #065f46;
}

.sid-daily-amount {
    font-size: 32px;
    font-weight: 800;
    color: #047857;
    margin: 10px 0;
}

/* Toggle Details Button */
.sid-toggle-details {
    background: #f3f4f6;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.sid-toggle-details:hover {
    background: #e5e7eb;
}

.sid-toggle-icon {
    transition: transform 0.3s ease;
}

.sid-toggle-details.active .sid-toggle-icon {
    transform: rotate(180deg);
}

/* Details Panel */
.sid-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9fafb;
    border-radius: 16px;
    margin-top: 16px;
}

.sid-details-panel.open {
    max-height: 500px;
    transition: max-height 0.6s ease-in;
    padding: 20px;
}

/* Dividend History Table */
.sid-history-table {
    width: 100%;
    border-collapse: collapse;
}

.sid-history-table th {
    text-align: left;
    padding: 12px 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sid-history-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.sid-history-table tr:hover {
    background: white;
}

.sid-dividend-paid {
    color: #10b981;
    font-weight: 600;
}

.sid-dividend-accrued {
    color: #f59e0b;
    font-weight: 600;
}

/* Completed Investment Card */
.sid-investment-card.completed {
    opacity: 0.85;
}

.sid-investment-card.completed .sid-card-header {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Empty State */
.sid-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 24px;
    color: #6b7280;
}

.sid-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .sid-dividend-stats {
        grid-template-columns: 1fr;
    }
    
    .sid-package-amount {
        font-size: 22px;
    }
    
    .sid-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


















































/* ============================================
   CHARTS SECTION STYLES
   ============================================ */

.sid-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.sid-chart-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sid-chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.sid-chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.sid-chart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 10px;
}

/* Responsive charts */
@media (max-width: 968px) {
    .sid-charts-row {
        grid-template-columns: 1fr;
    }
    
    .sid-chart-card canvas {
        max-height: 250px;
    }
}

/* Canvas container fix */
.sid-chart-card canvas {
    max-width: 100%;
    height: auto !important;
}