/* ====================================
   MARITIME ECOSYSTEM SOLUTION
   CSS Variables & Global Styles - Minimalist
   ==================================== */

:root {
    /* Primary Colors - Refined */
    --primary-cyan: #006064;
    --primary-cyan-dark: #004d50;
    --primary-cyan-light: #00838f;
    --primary-cyan-lighter: #26a69a;
    --primary-cyan-alpha: rgba(0, 96, 100, 0.1);
    
    /* Secondary Colors */
    --secondary-black: #000000;
    --secondary-black-light: #212121;
    --secondary-black-lighter: #424242;
    
    /* Accent Colors - Minimal */
    --accent-gray: #6b7280;
    --accent-gray-light: #9ca3af;
    --accent-gray-very-light: #e5e7eb;
    --accent-gray-ultra-light: #f9fafb;
    
    /* Status Colors */
    --success-green: #10b981;
    --success-green-light: #34d399;
    --warning-orange: #f59e0b;
    --warning-orange-light: #fbbf24;
    --danger-red: #ef4444;
    --danger-red-light: #f87171;
    --info-blue: #3b82f6;
    --info-blue-light: #60a5fa;
    
    /* Neutral Colors */
    --white: #ffffff;
    --background-gray: #f8fafc;
    --background-light: #ffffff;
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;
    
    /* Typography - Clean & Minimal */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Shadows - Subtle */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-none: none;
    
    /* Border Radius - Minimal */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Transitions - Smooth */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing - Consistent Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
    --container-max-width: 1400px;
}

/* ===== GLOBAL RESETS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--secondary-black-light);
    background: var(--background-gray);
    overflow-x: hidden;
    font-weight: 400;
}

/* ===== TYPOGRAPHY - Minimalist ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-cyan-dark);
}

/* ===== LISTS ===== */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== BUTTONS BASE ===== */
button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
    font-weight: 500;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FOCUS STYLES - Minimalist ===== */
*:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-cyan);
    color: var(--white);
}

/* ===== SCROLLBAR - Minimalist ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-gray-very-light);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gray-light);
}

/* ===== ANIMATIONS - Subtle ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.text-muted { color: var(--accent-gray) !important; }
.text-primary { color: var(--primary-cyan) !important; }
.text-success { color: var(--success-green) !important; }
.text-warning { color: var(--warning-orange) !important; }
.text-danger { color: var(--danger-red) !important; }
.text-info { color: var(--info-blue) !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-1 { gap: var(--spacing-sm) !important; }
.gap-2 { gap: var(--spacing) !important; }
.gap-3 { gap: var(--spacing-md) !important; }

.m-0 { margin: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm) !important; }
.mt-2 { margin-top: var(--spacing) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mb-1 { margin-bottom: var(--spacing-sm) !important; }
.mb-2 { margin-bottom: var(--spacing) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-sm) !important; }
.p-2 { padding: var(--spacing) !important; }
.p-3 { padding: var(--spacing-md) !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-none { box-shadow: var(--shadow-none) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    :root {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
        --sidebar-width: 100%;
        --spacing-lg: 1.5rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 2rem;
    }
}
