﻿/* DSS Facilities - Global Styles (Matching React globals.css) */

:root {
    /* Base */
    --font-size: 14px;
    --background: #ffffff;
    --foreground: #212529;
    /* Colors */
    --primary: #308e87;
    --primary-foreground: #ffffff;
    --primary-light: #4fa39b;
    --primary-dark: #267873;
    --secondary: #f8f9fa;
    --secondary-foreground: #030213;
    --muted: #f8f9fa;
    --muted-foreground: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border: rgba(0, 0, 0, 0.1);
    /* Radius */
    --radius: 0.625rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
}

* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

p {
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Screen Management */
.screen {
    display: none;
}

    .screen.active {
        display: block;
    }

/* Gradient Background */
.dss-bg-gradient {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.3) 0%, rgba(248, 249, 250, 0.6) 100%);
}

/* Header */
.dss-header {
    padding: 1rem 1.5rem;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.dss-logo-box {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, rgba(48, 142, 135, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dss-logo-text {
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
}

.dss-subtext {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 576px) {
    .dss-header {
        padding: 1.5rem;
    }

    .dss-logo-box {
        width: 3.5rem;
        height: 3.5rem;
    }

    .dss-logo-text {
        font-size: 1.25rem;
    }
}

/* Main Content */
.dss-main {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* Cards */
.dss-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    transition: all 0.5s ease;
}

.dss-card-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dss-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 576px) {
    .dss-card {
        padding: 3rem;
    }

    .dss-card-title {
        font-size: 1.5rem;
    }
}

/* Hero Image */
.dss-hero-img {
    max-width: 32rem;
    height: 8rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (min-width: 576px) {
    .dss-hero-img {
        height: 12rem;
    }
}

/* Icon Wrapper */
.dss-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(48, 142, 135, 0.2) 0%, rgba(48, 142, 135, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dss-icon-inner {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, rgba(48, 142, 135, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dss-icon-text {
    color: var(--primary-foreground);
    font-size: 1.25rem;
    font-weight: 700;
}

@media (min-width: 576px) {
    .dss-icon-wrapper {
        width: 5rem;
        height: 5rem;
    }

    .dss-icon-inner {
        width: 3.5rem;
        height: 3.5rem;
    }

    .dss-icon-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .dss-icon-wrapper {
        width: 6rem;
        height: 6rem;
    }

    .dss-icon-inner {
        width: 4rem;
        height: 4rem;
    }

    .dss-icon-text {
        font-size: 1.75rem;
    }
}

/* Titles */
.dss-title-xl {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(to right, var(--foreground), rgba(33, 37, 41, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
}

@media (min-width: 576px) {
    .dss-title-xl {
        font-size: 1.875rem;
    }
}

@media (min-width: 992px) {
    .dss-title-xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 1200px) {
    .dss-title-xl {
        font-size: 3rem;
    }
}

.dss-subtitle {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.625;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .dss-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 992px) {
    .dss-subtitle {
        font-size: 1.25rem;
    }
}

/* Feature Cards */
.dss-feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.3) 0%, rgba(248, 249, 250, 0.2) 100%);
    transition: all 0.3s ease;
}

    .dss-feature-card:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
    }

@media (min-width: 576px) {
    .dss-feature-card {
        padding: 2rem;
    }
}

.dss-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(48, 142, 135, 0.2) 0%, rgba(48, 142, 135, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.dss-feature-card:hover .dss-feature-icon {
    transform: scale(1.1);
}

@media (min-width: 576px) {
    .dss-feature-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (min-width: 992px) {
    .dss-feature-icon {
        width: 4rem;
        height: 4rem;
    }
}

.dss-feature-img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    object-fit: cover;
}

@media (min-width: 576px) {
    .dss-feature-img {
        width: 2rem;
        height: 2rem;
    }
}

.dss-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
    .dss-feature-title {
        font-size: 1.125rem;
    }
}

.dss-feature-text {
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* Support Box */
.dss-support-box {
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(248, 249, 250, 0.5), rgba(248, 249, 250, 0.3));
    border-radius: var(--radius-xl);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 576px) {
    .dss-support-box {
        padding: 2rem;
    }
}

.dss-support-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 576px) {
    .dss-support-text {
        font-size: 0.875rem;
    }
}

.dss-support-link {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.dss-btn-primary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    background: linear-gradient(to right, var(--primary), rgba(48, 142, 135, 0.9));
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 50px;
    cursor: pointer;
}

    .dss-btn-primary:hover {
        background: linear-gradient(to right, rgba(48, 142, 135, 0.9), var(--primary));
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        transform: scale(1.05);
        color: var(--primary-foreground);
    }

.dss-btn-lg {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
}

@media (min-width: 576px) {
    .dss-btn-lg {
        padding: 1.5rem 3rem;
    }
}

@media (min-width: 992px) {
    .dss-btn-lg {
        padding: 1.5rem 4rem;
    }
}

.dss-btn-environmental {
    background: linear-gradient(to right, #28a745, #218838);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 56px;
    cursor: pointer;
}

    .dss-btn-environmental:hover {
        background: linear-gradient(to right, #218838, #28a745);
        box-shadow: 0 25px 50px -12px rgba(40, 167, 69, 0.5);
        transform: scale(1.05);
        color: white;
    }

/* Footer */
.dss-footer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
}

.dss-footer-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 576px) {
    .dss-footer-text {
        font-size: 0.875rem;
    }
}

/* Step Cards (Overview Screen) */
.dss-step-card {
    transition: all 0.3s ease;
}

    .dss-step-card:hover {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        transform: translateY(-4px);
    }

.dss-step-current {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.dss-step-completed {
    outline: 2px solid var(--success);
    outline-offset: 4px;
}

.dss-step-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

@media (max-width: 767px) {
    .dss-step-img-wrapper {
        border-radius: var(--radius-lg);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.dss-step-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    min-height: 160px;
    transition: transform 0.3s ease;
}

.dss-step-card:hover .dss-step-img {
    transform: scale(1.05);
}

@media (min-width: 576px) {
    .dss-step-img {
        height: 200px;
        min-height: 200px;
    }
}

.dss-step-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dss-step-completed {
    color: var(--success);
}

.dss-step-active {
    color: var(--primary);
}

.dss-icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 576px) {
    .dss-icon-sm {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.dss-step-icon {
    font-size: 1.5rem;
}

@media (min-width: 576px) {
    .dss-step-icon {
        font-size: 1.75rem;
    }
}

.dss-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dss-step-card:hover .dss-step-title {
    color: var(--primary);
}

@media (min-width: 576px) {
    .dss-step-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .dss-step-title {
        font-size: 1.75rem;
    }
}

.dss-step-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.625;
}

@media (min-width: 576px) {
    .dss-step-description {
        font-size: 1rem;
    }
}

/* Action Boxes */
.dss-action-box {
    background: linear-gradient(to right, rgba(48, 142, 135, 0.1), rgba(48, 142, 135, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(48, 142, 135, 0.2);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 576px) {
    .dss-action-box {
        padding: 2rem;
    }
}

.dss-action-text {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

@media (min-width: 576px) {
    .dss-action-text {
        font-size: 0.875rem;
    }
}

.dss-completed-box {
    background: linear-gradient(to right, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

    .dss-completed-box p {
        font-size: 0.75rem;
        color: var(--success);
        font-weight: 500;
        margin-bottom: 0;
    }

@media (min-width: 576px) {
    .dss-completed-box {
        padding: 1.25rem 1.5rem;
    }

        .dss-completed-box p {
            font-size: 0.875rem;
        }
}

.dss-environmental-box {
    background: linear-gradient(to right, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--success);
    box-shadow: 0 10px 15px -3px rgba(40, 167, 69, 0.1);
}

@media (min-width: 576px) {
    .dss-environmental-box {
        padding: 2rem;
    }
}

.dss-pulse-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Progress Bar */
.dss-progress {
    width: 100%;
    background-color: var(--muted);
    border-radius: 999px;
    height: 0.75rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dss-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), rgba(48, 142, 135, 0.8));
    border-radius: 999px;
    transition: width 0.5s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Step Numbers (Progress Overview) */
.dss-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 576px) {
    .dss-step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

.dss-step-number-done {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.dss-step-number-current {
    background: linear-gradient(135deg, var(--primary), rgba(48, 142, 135, 0.8));
    color: var(--primary-foreground);
}

.dss-step-number-pending {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

/* Badge Styles */
.dss-badge-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

.w-100 {
    width: 100%;
}

.w-sm-auto {
    width: 100%;
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto;
    }
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

@media (min-width: 576px) {
    .gap-sm-2 {
        gap: 0.5rem;
    }

    .gap-sm-3 {
        gap: 1rem;
    }

    .gap-sm-4 {
        gap: 1.5rem;
    }

    .gap-sm-5 {
        gap: 3rem;
    }
}

.sticky-top {
    position: sticky;
    top: 24px;
}

@media (max-width: 991px) {
    .sticky-top {
        position: relative;
        top: 0;
    }
}
