/* DATAMART-Inspired SaaS Design for DATAMARTurity Tool */

:root {
    /* DATAMART Brand Colors - from logo and footer */
    --datamart-purple-light: #9b8aff;
    --datamart-blue: #5e44ff;
    --datamart-blue-medium: #4833cc;
    --datamart-blue-dark: #3d2eb8;
    --datamart-blue-darker: #2d1e88;
    --datamart-gradient: linear-gradient(135deg, #5e44ff 0%, #9b8aff 100%);
    --datamart-gradient-reverse: linear-gradient(135deg, #9b8aff 0%, #5e44ff 100%);
    --datamart-gray: #323130;
    --datamart-light-gray: #f3f2f1;
    --datamart-white: #ffffff;
    --shadow-fluent: 0 1.6px 3.6px 0 rgba(94,68,255,.132), 0 0.3px 0.9px 0 rgba(94,68,255,.108);
    --shadow-fluent-hover: 0 3.2px 7.2px 0 rgba(94,68,255,.132), 0 0.6px 1.8px 0 rgba(94,68,255,.108);
}

/* Override Bootstrap primary color to DATAMART purple */
.text-primary {
    color: var(--datamart-blue) !important;
}

.bg-primary {
    background: var(--datamart-gradient) !important;
}

.border-primary {
    border-color: var(--datamart-blue) !important;
}

/* Global Body & Typography */
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: #fafafa;
    color: var(--datamart-gray);
    line-height: 1.6;
}

/* Hero Section - DATAMART Style */
.hero-section {
    background-image: url('/static/images/footer-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 4rem 2rem;
    color: white;
    box-shadow: var(--shadow-fluent);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiB4PSIwIiB5PSIwIiB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBpZD0iYSI+PGVsbGlwc2UgY3g9IjIiIGN5PSIyIiByeD0iMSIgcnk9IjEiIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4xKSIgZmlsbC1ydWxlPSJldmVub2RkIj48L2VsbGlwc2U+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9InVybCgjYSkiPjwvcmVjdD48L3N2Zz4K');
    opacity: 0.1;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Navigation - Clean DATAMART Style */
.navbar {
    background-color: var(--datamart-white) !important;
    box-shadow: var(--shadow-fluent);
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--datamart-blue) !important;
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: var(--datamart-blue-dark) !important;
}

.navbar-nav .nav-link {
    color: var(--datamart-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--datamart-light-gray);
    color: var(--datamart-blue) !important;
}

/* DATAMART-style Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-fluent);
    background-color: var(--datamart-white);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-fluent-hover);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--datamart-white);
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* DATAMART Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--datamart-gradient);
    color: white;
    box-shadow: 0 2px 4px rgba(94, 68, 255, 0.2);
}

.btn-primary:hover {
    background: var(--datamart-gradient-reverse);
    box-shadow: 0 4px 8px rgba(94, 68, 255, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--datamart-blue);
    border: 2px solid var(--datamart-blue);
}

.btn-outline-primary:hover {
    background: var(--datamart-gradient);
    border-color: var(--datamart-blue);
    color: white;
}

.btn-light {
    background-color: var(--datamart-white);
    color: var(--datamart-blue);
    border: 1px solid #e5e5e5;
}

.btn-light:hover {
    background-color: var(--datamart-light-gray);
    border-color: var(--datamart-blue);
    color: var(--datamart-blue-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* Stats/KPI Styling */
.stats-container .col-lg-3 {
    padding: 1rem;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--datamart-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Microsoft Fluent Spacing & Layout */
.container {
    max-width: 1200px;
}

.section-padding {
    padding: 4rem 0;
}

.section-heading {
    font-weight: 600;
    color: var(--datamart-gray);
    margin-bottom: 3rem;
}

/* Badge styling */
.badge {
    border-radius: 50px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Form Elements - Microsoft Style */
.form-control,
.form-select {
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--datamart-blue);
    box-shadow: 0 0 0 2px rgba(94, 68, 255, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--datamart-gray);
    margin-bottom: 0.5rem;
}

/* Testimonials & Content Cards */
.testimonial-card {
    background: var(--datamart-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-fluent);
    height: 100%;
    border-left: 4px solid var(--datamart-blue);
}

/* Feature Icons */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    background: var(--datamart-gradient);
    color: white;
}

/* Alerts - DATAMART Style */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    background-color: var(--datamart-white);
}

.alert-warning {
    border-left-color: #ffb900;
    background-color: #fef9e7;
}

.alert-danger {
    border-left-color: #d83b01;
    background-color: #fdf2f2;
}

.alert-success {
    border-left-color: #107c10;
    background-color: #f3f9f3;
}

.alert-info {
    border-left-color: var(--datamart-blue);
    background-color: #f0f8ff;
}

/* Dashboard Grid & Charts */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-grid.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.dashboard-grid.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.chart-container {
    background: var(--datamart-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-fluent);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--datamart-gray);
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.75rem;
}

/* KPI Cards */
.kpi-card {
    background: var(--datamart-white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-fluent);
    border-left: 4px solid var(--datamart-blue);
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--datamart-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.kpi-change {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

.kpi-change.positive {
    color: #107c10;
}

.kpi-change.negative {
    color: #d83b01;
}

/* Progress bars */
.progress {
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    background: var(--datamart-gradient);
    transition: width 0.3s ease;
}

/* Tables */
.table {
    font-size: 0.875rem;
    color: var(--microsoft-gray);
}

.table th {
    font-weight: 600;
    color: var(--datamart-gray);
    background-color: var(--datamart-light-gray);
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.mockup-table {
    background: var(--datamart-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-fluent);
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    color: var(--datamart-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-value {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Microsoft Acrylic Effect */
.acrylic-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--microsoft-light-gray);
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}