﻿/* Dashboard Specific Styles - Green Theme - Enhanced for Full Screen Usage */
:root {
    /* Platform-consistent GREEN color palette */
    --dashboard-primary: #2d6760;
    --dashboard-primary-hover: #3e8a7f;
    --dashboard-primary-dark: #1f4b47;
    --dashboard-secondary: #64748b;
    --dashboard-success: #198754;
    --dashboard-warning: #ffc107;
    --dashboard-danger: #dc3545;
    --dashboard-info: #20c997;
    --dashboard-light: #f8fbfe;
    --dashboard-dark: #124265;
    --dashboard-teal: #2d6760;
    --dashboard-teal-light: #4a9b8e;
    
    /* Enhanced platform grays */
    --dashboard-gray-50: #f8fbfe;
    --dashboard-gray-100: #e6f2fb;
    --dashboard-gray-200: #c9e3f5;
    --dashboard-gray-300: #87c1ea;
    --dashboard-gray-400: #5e9dd4;
    --dashboard-gray-500: #217bbc;
    --dashboard-gray-600: #1e6ca6;
    --dashboard-gray-700: #16507b;
    --dashboard-gray-800: #124265;
    --dashboard-gray-900: #0a263a;
    
    /* Platform text colors */
    --dashboard-text-primary: #124265;
    --dashboard-text-secondary: #5e5e5e;
    --dashboard-text-muted: #919191;
    
    --dashboard-border-radius: 8px;
    --dashboard-border-radius-lg: 12px;
    --dashboard-shadow-sm: 0 1px 2px 0 rgba(45, 103, 96, 0.05);
    --dashboard-shadow-md: 0 4px 6px -1px rgba(45, 103, 96, 0.08), 0 2px 4px -2px rgba(45, 103, 96, 0.05);
    --dashboard-shadow-lg: 0 10px 15px -3px rgba(45, 103, 96, 0.1), 0 4px 6px -4px rgba(45, 103, 96, 0.05);
    --dashboard-shadow-xl: 0 20px 25px -5px rgba(45, 103, 96, 0.15), 0 8px 10px -6px rgba(45, 103, 96, 0.1);
    
    --dashboard-animation-duration: 0.3s;
    --dashboard-animation-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Container - Enhanced for full screen usage */
.dashboard-container {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--dashboard-light) 0%, var(--dashboard-gray-100) 100%);
    min-height: calc(100vh - 100px);
    font-family: 'Open Sans', sans-serif;
    color: var(--dashboard-text-primary);
    width: 100%;
    max-width: none;
}

/* Full-width container adjustments */
.dashboard-container .container-fluid {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Welcome Section - Full width optimization */
.welcome-section {
    background: linear-gradient(135deg, var(--dashboard-primary) 0%, var(--dashboard-primary-hover) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--dashboard-border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--dashboard-shadow-xl);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    font-family: "Raleway", sans-serif;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
}

.quick-actions {
    position: relative;
    z-index: 10;
}

/* Welcome section button styles with animations */
.quick-actions .btn {
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quick-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-actions .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.quick-actions .btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-actions .btn i {
    transition: transform 0.3s ease;
}

.quick-actions .btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Specific colors for each button type */
.quick-actions .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.quick-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
}

.quick-actions .btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.quick-actions .btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%);
}

.quick-actions .btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

.quick-actions .btn-info:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #088fa8 100%);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Enhanced Metrics Section */
.metrics-section {
    margin-bottom: 2rem;
}

.metrics-section .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Reporting & Oversight quick links */
.reporting-overview-section {
    margin-bottom: 2rem;
}

.reporting-overview-section .section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dashboard-text-primary);
}

.reporting-overview-section .section-subtitle {
    color: var(--dashboard-text-muted);
    font-size: 0.95rem;
}

.reporting-link-card {
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
    border: none;
    border-radius: var(--dashboard-border-radius);
    background: white;
    box-shadow: var(--dashboard-shadow-md);
    color: inherit;
}

.reporting-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dashboard-shadow-lg);
    color: inherit;
}

.reporting-link-card .card-body {
    padding: 1.25rem;
}

.reporting-link-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.reporting-link-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dashboard-text-primary);
    margin-bottom: 0.5rem;
}

.reporting-link-text {
    font-size: 0.875rem;
    color: var(--dashboard-text-secondary);
    line-height: 1.45;
}

.metric-card {
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
    border: none;
    border-radius: var(--dashboard-border-radius);
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: var(--dashboard-shadow-md);
    border-left: 4px solid transparent;
    height: 100%;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dashboard-primary), var(--dashboard-teal-light));
    transform: scaleX(0);
    transition: transform var(--dashboard-animation-duration) var(--dashboard-animation-ease);
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dashboard-shadow-xl);
}

.metric-card:hover::before {
    transform: scaleX(1);
}

/* Metric card responsive sizing */
.metric-card .card-body {
    padding: 1.25rem;
}

.metric-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
    min-width: 0;
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dashboard-text-primary);
    line-height: 1;
    font-family: "Raleway", sans-serif;
}

.metric-label {
    color: var(--dashboard-gray-600);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Activity Timeline - Enhanced */
.activity-timeline {
    position: relative;
    padding: 0;
}

.activity-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.25rem;
    border-radius: var(--dashboard-border-radius);
    box-shadow: var(--dashboard-shadow-sm);
    border: 1px solid var(--dashboard-gray-200);
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--dashboard-shadow-md);
    border-color: var(--dashboard-primary);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dashboard-text-primary);
    font-size: 1rem;
}

.activity-description {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--dashboard-gray-600);
    line-height: 1.4;
}

.activity-badges .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    display: inline-block;
}

/* Quick Actions Card - Enhanced layout */
.quick-actions-card .card-body {
    padding: 1.25rem;
}

.quick-actions-card .btn {
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.quick-actions-card .btn-primary {
    background-color: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}

.quick-actions-card .btn-primary:hover {
    background-color: var(--dashboard-primary-hover);
    border-color: var(--dashboard-primary-hover);
}

.quick-actions-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--dashboard-shadow-md);
}

/* Performance Insights - Enhanced */
.insight-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--dashboard-gray-50);
    border-radius: var(--dashboard-border-radius);
    border-left: 4px solid var(--dashboard-primary);
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
}

.insight-item:hover {
    background: white;
    box-shadow: var(--dashboard-shadow-sm);
    transform: translateX(0.25rem);
}

.insight-item:last-child {
    margin-bottom: 0;
}

.insight-item .progress {
    height: 0.4rem;
    border-radius: 0.2rem;
    background-color: var(--dashboard-gray-200);
    overflow: hidden;
}

/* Card Enhancements */
.dashboard-container .card {
    border: none;
    border-radius: var(--dashboard-border-radius);
    box-shadow: var(--dashboard-shadow-md);
    transition: all var(--dashboard-animation-duration) var(--dashboard-animation-ease);
    overflow: hidden;
    background: white;
}

.dashboard-container .card:hover {
    box-shadow: var(--dashboard-shadow-lg);
}

.dashboard-container .card-header {
    background: transparent;
    border-bottom: 1px solid var(--dashboard-gray-200);
    padding: 1.25rem;
    font-weight: 700;
    color: var(--dashboard-text-primary);
}

.dashboard-container .card-body {
    padding: 1.25rem;
}

/* Chart Container - Enhanced for full screen */
.chart-container {
    position: relative;
    height: 300px;
    padding: 0.5rem;
    width: 100%;
}

/* Advertisement Enhancements */
.ad-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--dashboard-border-radius);
    box-shadow: var(--dashboard-shadow-md);
}

.ad-container img {
    transition: transform var(--dashboard-animation-duration) var(--dashboard-animation-ease);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-container {
    position: relative;
    background: var(--dashboard-dark);
    border-radius: var(--dashboard-border-radius);
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: var(--dashboard-border-radius);
}

/* Responsive Design - Enhanced for better screen usage */
@media (min-width: 1400px) {
    .dashboard-container {
        padding: 1.5rem 2rem;
    }
    
    .welcome-section {
        padding: 3rem 2.5rem;
    }
    
    .dashboard-title {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 350px;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .dashboard-container {
        padding: 0.75rem;
    }
    
    .welcome-section {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .metric-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .welcome-section {
        margin-bottom: 1rem;
        padding: 1.25rem 0.75rem;
    }
    
    .metrics-section .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    .metric-card .card-body {
        padding: 1rem;
    }
    
    .metric-card .d-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .metric-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .activity-badges .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .chart-container {
        height: 220px;
    }
    
    .quick-actions-card .btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-container {
        padding: 0.25rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 0.9rem;
    }
    
    .metric-number {
        font-size: 1.6rem;
    }
    
    .chart-container {
        height: 200px;
        padding: 0.25rem;
    }
}

/* Loading Animations */
.metric-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--dashboard-gray-600);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--dashboard-gray-400);
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.dashboard-container .btn:focus,
.dashboard-container .card:focus-within {
    outline: 2px solid var(--dashboard-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .dashboard-container {
        background: white;
        color: black;
        padding: 1rem;
    }
    
    .welcome-section {
        background: var(--dashboard-gray-100) !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .metric-card,
    .card {
        box-shadow: none !important;
        border: 1px solid var(--dashboard-gray-300) !important;
        break-inside: avoid;
    }
}

/* Additional utility classes for better screen usage */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

/* Badge color overrides to match platform */
.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: var(--dashboard-success) !important;
}

.badge.bg-info-subtle {
    background-color: rgba(45, 103, 96, 0.1) !important;
    color: var(--dashboard-primary) !important;
}

/* Text colors matching platform */
.text-primary {
    color: var(--dashboard-primary) !important;
}

.text-success {
    color: var(--dashboard-success) !important;
}

.text-warning {
    color: var(--dashboard-warning) !important;
}

.text-info {
    color: var(--dashboard-info) !important;
}

/* Button styles matching platform */
.btn-primary {
    background-color: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}

.btn-primary:hover {
    background-color: var(--dashboard-primary-hover);
    border-color: var(--dashboard-primary-hover);
}

.btn-success {
    background-color: var(--dashboard-success);
    border-color: var(--dashboard-success);
}

.btn-outline-primary {
    color: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}

.btn-outline-primary:hover {
    background-color: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}
