/* =========================================
   TENDER ADMIN PORTAL DESIGN SYSTEM
   Strict Replication for Marketing Consultants
   ========================================= */

:root {
    /* 1. PALETTE (Exact Match) */
    --dark: #0f172a;
    /* Slate 900 */
    --surface: #1e293b;
    /* Slate 800 */
    --primary: #2563eb;
    /* Electric Blue */
    --secondary: #7c3aed;
    /* Deep Purple */
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    /* Slate 400 */
    --glass-border: rgba(255, 255, 255, 0.15);
    /* increased visibility */
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

p {
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.7;
}

/* =========================================
   UTILITIES & EFFECTS
   ========================================= */

.bg-surface {
    background: linear-gradient(160deg, var(--surface) 0%, #0f172a 100%);
}

.bg-dark-section {
    background: linear-gradient(160deg, #020617 0%, var(--dark) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
    position: relative;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.5;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.5;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* The Container for "Coded Mockups" */
.ui-mockup-card {
    background: #172033;
    /* Distinct deep blue-grey */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger outline */
    border-radius: 20px;
    /* More rounded */
    padding: 24px;
    position: relative;
    /* Context */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Deeper shadow for pop */
    overflow: hidden;
    /* Ensure rounded corners clip content */
}

/* Glass Cards */
.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Active State for Sidebar Items */
.ui-sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s;
}

.ui-sidebar-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--glow-primary);
}

/* =========================================
   HIGH-DENSITY MOCKUP UTILITIES (Supercharge)
   ========================================= */

/* Dashboard Grid Layout (Sidebar + Header + Body) */
.ui-dashboard-layout {
    display: flex;
    height: 100%;
    background: #0f172a;
    /* Inner dark bg */
}

.ui-dashboard-sidebar {
    width: 50px;
    border-right: 1px solid var(--glass-border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.ui-dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ui-dashboard-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.75rem;
}

/* High-Density Data Tables */
.ui-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.ui-data-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.ui-data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #fff;
}

.ui-data-table tr:last-child td {
    border-bottom: none;
}

/* Widget Grid for Dashboards */
.ui-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.ui-widget-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
}

/* Skeleton Loaders (for "busy" look) */
.ui-skeleton-text {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 6px;
}

.ui-skeleton-text.w-75 {
    width: 75%;
}

.ui-skeleton-text.w-50 {
    width: 50%;
}

/* Code Editor Specifics */
.ui-code-line {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre;
    color: #cbd5e1;
}

.ui-code-line .token-keyword {
    color: #c084fc;
}

/* Purple */
.ui-code-line .token-string {
    color: #86efac;
}

/* Green */
.ui-code-line .token-func {
    color: #60a5fa;
}

/* Blue */
.ui-code-line .line-num {
    color: #475569;
    margin-right: 12px;
    user-select: none;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

/* 3D Hero Image */
.hero-img {
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    /* Fallback */
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Mockup Containers */
.ui-mockup-container {
    padding: 2rem;
    position: relative;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

/* Badges */
.badge-custom {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Refined Spacing for Feature Grid */
.saas-feature-section {
    padding: 6rem 0;
    /* Increased from 4rem for better breathing room */
}

.saas-feature-section h2 {
    margin-bottom: 1.5rem !important;
    /* Standardization */
}

/* Feature Lists */
.check-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.check-list-item i {
    color: var(--primary);
}

/* =========================================
   LAYOUT ADJUSTMENTS (Wider Screen)
   ========================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        /* Bootstrap XXL Default */
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1540px;
        /* Wider for high res */
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1720px;
        /* Ultra wide */
    }
}