/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette - Pure Black & White (Monochrome High Contrast Theme) */
    --bg-main: #000000;
    --bg-card: #0c0c0c;
    --bg-card-hover: #121212;
    --border-glass: #222222;
    --border-glass-focus: #ffffff;
    
    --primary: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.1);
    --secondary: #cccccc; 
    --secondary-glow: rgba(255, 255, 255, 0.05);
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    /* Monochrome Status Tones */
    --success: #ffffff;
    --success-glow: rgba(255, 255, 255, 0.08);
    --warning: #888888;
    --warning-glow: rgba(255, 255, 255, 0.03);
    --danger: #444444;
    --danger-glow: rgba(255, 255, 255, 0.02);
    
    --sidebar-width: 265px;
    --sidebar-collapsed: 75px;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    --glass-blur: blur(14px);
}

/* Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeInPage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Technical blueprint grid overlay */
.landing-hero, .landing-section {
    position: relative;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-position: center top;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Modern Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease-in-out;
}
.glass-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Titles and Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.gradient-text {
    color: #ffffff;
}
.gradient-text-accent {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: #888888;
}

/* Custom Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    font-weight: 500;
    background: var(--bg-card);
    animation: fadeInUp 0.4s ease;
}
.alert-success {
    color: #ffffff;
    border-color: #ffffff;
}
.alert-error, .alert-danger {
    color: #888888;
    border-color: #444444;
}

/* Authentication Page Forms */
.auth-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 20px;
    animation: fadeInUp 0.5s ease;
}
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo h1 {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Inputs and Forms Control */
.form-group {
    margin-bottom: 22px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    background: #000000;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: var(--border-glass-focus);
}
select.form-control {
    cursor: pointer;
}
select.form-control option {
    background: #000000;
    color: var(--text-main);
}
textarea.form-control {
    resize: none;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    gap: 10px;
    width: 100%;
}
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}
.btn-primary:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: #111111;
    border-color: #ffffff;
    transform: translateY(-1px);
}
.btn-accent {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}
.btn-accent:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
    transform: translateY(-1px);
}
.btn-inline {
    width: auto;
}
.btn:active {
    transform: translateY(0);
}

/* Layout Architecture */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: #000000;
    border-right: 1px solid var(--border-glass);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 24px 12px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 28px;
}
.sidebar-brand h2 {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Space Grotesk', sans-serif;
}
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--text-muted);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.sidebar-link:hover, .sidebar-item.active .sidebar-link {
    color: #fff;
    background: #111111;
}
.sidebar-item.active .sidebar-link {
    border-left: 3px solid #ffffff;
    border-radius: 0 6px 6px 0;
}
.sidebar-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}
.sidebar-link:hover svg {
    transform: translateX(2px);
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-glass);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 35px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Dashboard Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    gap: 20px;
}
.topbar-title h1 {
    font-size: 1.85rem;
    font-weight: 800;
}
.topbar-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.balance-card {
    background: #000000;
    border: 1px solid var(--border-glass);
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}
.balance-card svg {
    color: #ffffff;
}

.profile-badge {
    background: #000000;
    border: 1px solid var(--border-glass);
    padding: 10px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}
.profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000000;
    font-size: 0.8rem;
}

/* Statistics Widgets Summary Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}
.stat-info h3 {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 700;
}
.stat-info p {
    font-size: 1.65rem;
    font-weight: 800;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #000000;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

/* Two-Column Grid Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 26px;
    margin-bottom: 35px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables Styling */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}
table.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #000000;
}
table.glass-table th {
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--border-glass);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-card);
}
table.glass-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.92rem;
    color: var(--text-main);
}
table.glass-table tr:last-child td {
    border-bottom: none;
}
table.glass-table tr:hover {
    background: var(--bg-card);
}

/* Grayscale Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}
.badge-pending {
    background: transparent;
    color: #888888;
    border-color: #444444;
}
.badge-processing {
    background: transparent;
    color: #cccccc;
    border-color: #888888;
}
.badge-completed, .badge-success, .badge-approved {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.badge-failed, .badge-danger, .badge-rejected, .badge-cancelled {
    background: transparent;
    color: #555555;
    border-color: #222222;
    text-decoration: line-through;
}

/* Catalog Filter Tabs */
.service-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.category-btn {
    padding: 10px 20px;
    background: #000000;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.category-btn:hover, .category-btn.active {
    background: var(--bg-card);
    border-color: var(--primary);
    color: #fff;
}

/* Catalog Services Grid */
.services-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.service-item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-item-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.service-item-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-top: 4px;
}
.service-item-cat {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.service-item-body {
    flex-grow: 1;
}
.service-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.service-spec-label {
    color: var(--text-muted);
}
.service-spec-val {
    font-weight: 600;
}
.service-item-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 18px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.service-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}
.service-price span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Public Landing Page Setup */
.landing-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 8%;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}
.landing-nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}
.landing-nav-link:hover {
    color: var(--primary);
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 160px 8% 100px 8%;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    background-image: radial-gradient(circle at 50% 90%, rgba(255, 94, 0, 0.05) 0%, transparent 60%);
}
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.particle {
    position: absolute;
    background: radial-gradient(circle, #ff943d 0%, #ff5e00 80%);
    border-radius: 50%;
    animation: rise 15s infinite linear;
    bottom: -20px;
    box-shadow: 0 0 12px rgba(255, 94, 0, 0.7);
    filter: blur(0.5px);
}
.particle:nth-child(1) { left: 10%; width: 6px; height: 6px; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 25%; width: 10px; height: 10px; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 40%; width: 4px; height: 4px; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(4) { left: 55%; width: 8px; height: 8px; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 70%; width: 12px; height: 12px; animation-delay: 5s; animation-duration: 20s; }
.particle:nth-child(6) { left: 85%; width: 5px; height: 5px; animation-delay: 3s; animation-duration: 11s; }
.particle:nth-child(7) { left: 95%; width: 7px; height: 7px; animation-delay: 6s; animation-duration: 16s; }
.particle:nth-child(8) { left: 15%; width: 9px; height: 9px; animation-delay: 8s; animation-duration: 15s; }

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-105vh) rotate(360deg);
        opacity: 0;
    }
}


@media (max-width: 992px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 5% 60px 5%;
    }
}
.hero-content {
    max-width: 650px;
    z-index: 2;
    text-align: left;
}
@media (max-width: 992px) {
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
}
.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.hero-buttons {
    display: flex;
    gap: 18px;
}
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}
.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.hero-mockup-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: grayscale(100%) brightness(1.2) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.9));
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.landing-section {
    padding: 90px 8%;
    background: #000000;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
}
.section-title p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.feature-card {
    text-align: center;
    padding: 40px 30px;
}
.feature-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    background: #0c0c0c;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: var(--primary);
}
.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer {
    margin-top: auto;
    padding: 45px 8%;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    background: #000000;
}
.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 18px;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

/* Mobile Sidebar Drawer */
.mobile-header {
    display: none;
    background: #000000;
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 22px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 110;
}
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}
.menu-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .sidebar {
        left: -100%;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .mobile-header {
        display: flex;
    }
    .topbar {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .landing-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-glass);
        padding: 20px;
        gap: 15px;
        align-items: stretch;
        text-align: center;
        box-shadow: var(--card-shadow);
        z-index: 1000;
    }
    .landing-nav-links.show {
        display: flex;
    }
}

/* Pricing Calculation Area */
.pricing-calculator {
    padding: 22px;
    border-radius: 8px;
    background: #000000;
    border: 1px solid var(--border-glass);
    margin-top: 22px;
}
.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.calc-total {
    border-top: 1.5px solid var(--border-glass);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.admin-badge {
    background: #222222;
    color: #ffffff;
    border: 1px solid #444444;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proof-img-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    margin-top: 14px;
    object-fit: contain;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
