@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Zomato Red Style */
    --primary-color: #E23744;
    --primary-hover: #D32F2F;
    --primary-soft: #FFEDEE;
    /* Surface Colors */
    --bg-body: #F4F7F8;
    --bg-surface: #FFFFFF;
    --border-color: #EBEBEB;
    /* Text Colors */
    --text-primary: #1C1C1C;
    --text-secondary: #697689;
    --text-muted: #9FA6B2;
    /* Semantic Colors */
    --success: #24963E;
    --success-bg: #E3F9E5;
    --warning: #F59F00;
    --warning-bg: #FFF5CC;
    --error: #E03131;
    --error-bg: #FFF5F5;
    /* Dimensions */
    --radius-md: 12px;
    --radius-lg: 16px;
    --nav-height: 70px;
    --sidebar-width: 260px;
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.925rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Layout --- */
.sidebar-enterprise {
    background: var(--bg-surface);
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.main-content-enterprise {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: 100vh;
}

.navbar-enterprise {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

/* --- Navigation Links --- */
.nav-link-enterprise {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

    .nav-link-enterprise:hover {
        color: var(--primary-color);
        background: var(--bg-body);
    }

    .nav-link-enterprise.active {
        color: var(--primary-color);
        background: var(--primary-soft);
        border-right-color: var(--primary-color);
        font-weight: 600;
    }

    .nav-link-enterprise i {
        width: 24px;
        margin-right: 12px;
        font-size: 1.1em;
        text-align: center;
    }

/* --- Cards --- */
.enterprise-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

    .enterprise-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-color: #D1D5DB;
    }

.card-title-enterprise {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn-enterprise {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-enterprise:hover {
        background-color: var(--primary-hover);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(226, 55, 68, 0.25);
    }

    .btn-enterprise:active {
        transform: translateY(0);
    }

.btn-enterprise-secondary {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

    .btn-enterprise-secondary:hover {
        border-color: var(--text-secondary);
        color: var(--text-primary);
        background: transparent;
        box-shadow: none;
    }

/* --- Forms --- */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-control-enterprise {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-body);
}

    .form-control-enterprise:focus {
        outline: none;
        border-color: var(--primary-color);
        background: var(--bg-surface);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }

/* --- Tables (Clean) --- */
.table-enterprise {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-enterprise th {
        text-align: left;
        padding: 1rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border-color);
    }

    .table-enterprise td {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
    }

    .table-enterprise tr:last-child td {
        border-bottom: none;
    }

/* --- Utilities --- */
.text-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.text-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Snackbar --- */
#snackbar {
    visibility: hidden;
    min-width: 320px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 14px 24px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

    #snackbar.show {
        visibility: visible;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* --- Mobile --- */
@media (max-width: 991px) {
    .sidebar-enterprise {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .main-content-enterprise {
        margin-left: 0;
    }

    .navbar-enterprise {
        left: 0;
    }
}
