﻿/*
* design.css
* Custom enhancements for visual polish
******************************************************************************/

body {
    background-color: #f9fafb;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #212529;
}

/* Branding */
.menu .app-brand.demo {
    height: 64px;
    margin-top: 12px;
}

.app-brand-logo.demo svg {
    width: 24px;
    height: 40px;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    font-weight: 600;
    color: #0d6efd;
}

/* Navbar padding fixes */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 74px !important;
}

.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 62px !important;
}

/* Fix z-index issues */
.content-wrapper .navbar {
    z-index: 1030;
}

/* Spacing Utility Enhancements */
.demo-inline-spacing > * {
    margin: 1rem 0.5rem 0 0 !important;
}

.demo-vertical-spacing > * {
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 2rem !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 3rem !important;
}

/* RTL Override Helpers */
.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/* Responsive Dropdown Buttons */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 231px;
        position: relative;
    }

        #dropdown-variation-demo .btn-group .text-truncate::after {
            position: absolute;
            top: 45%;
            right: 0.65rem;
        }
}

/* Layout Demo */
.layout-demo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.layout-demo-placeholder img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #495057;
}
/* Sidebar background: white, clean */
.sidebar-container {
    width: 260px;
    min-height: 100vh;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-right: 1px solid #e0e0e0;
}

    /* Branding */
    .sidebar-container .navbar-brand {
        font-size: 1.25rem;
        font-weight: 600;
        color: #093A4C; /* Brand Blue */
        letter-spacing: -0.5px;
    }

        .sidebar-container .navbar-brand i {
            color: #96C852; /* Brand Green */
        }

/* Nav links */
.custom-nav-link {
    color: #093A4C; /* Brand Blue */
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
}

    /* Hover effect: soft green tint */
    .custom-nav-link:hover,
    .custom-nav-link:focus {
        background-color: rgba(150, 200, 82, 0.1);
        text-decoration: none;
        color: #093A4C; /* Keep on-brand */
    }

    /* Active nav item: bold green border and text stays brand blue */
    .custom-nav-link.active {
        background-color: rgba(150, 200, 82, 0.15);
        border-left: 4px solid #96C852;
        padding-left: calc(1rem - 4px);
        font-weight: 600;
        color: #093A4C;
    }

        /* Active icon also goes green */
        .custom-nav-link.active i {
            color: #96C852;
        }
.card-header h5 {
    font-weight: 600;
    font-size: 1.125rem;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.table th, .table td {
    vertical-align: middle;
}