/*
 * Yewodze Soap Manufacturing Enterprise Application
 * Custom CSS Styles
 */

/* Logo Styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    max-width: 35px !important;
    width: 35px !important;
    height: auto !important;
    margin-bottom: 5px;
    filter: brightness(1.1);
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    max-width: 180px;
    height: auto;
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 40px;
    width: auto;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: #000000 !important;
    background-color: #ffd700 !important;
    border-left: 3px solid #ffffff !important;
}

.sidebar .nav-link.active {
    color: #000000 !important;
    background-color: #ffd700 !important;
    border-left: 3px solid #ffffff !important;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    color: #ffffff !important;
}

.sidebar .nav-link.active i {
    color: #000000 !important;
}

.sidebar .nav-link:hover i {
    color: #000000 !important;
}

/* Submenu Styles */
.sidebar .collapse .nav-link {
    color: #ffffff !important;
    padding-left: 2.5rem;
}

.sidebar .collapse .nav-link:hover {
    color: #000000 !important;
    background-color: #ffd700 !important;
    border-left: 3px solid #ffffff !important;
}

.sidebar .collapse .nav-link.active {
    color: #000000 !important;
    background-color: #ffd700 !important;
    border-left: 3px solid #ffffff !important;
}

/* Website Submenu Styles */
.website-submenu {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 0;
}

.website-submenu .nav-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.website-submenu .nav-link i {
    font-size: 0.85rem;
}

.sidebar .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
}

.sidebar .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Main Content Styles */
.content {
    padding: 1.5rem;
}

/* Card Styles */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Text Colors */
.text-primary {
    color: #4e73df !important;
}

.text-success {
    color: #1cc88a !important;
}

.text-info {
    color: #36b9cc !important;
}

.text-warning {
    color: #f6c23e !important;
}

.text-danger {
    color: #e74a3b !important;
}

.text-secondary {
    color: #858796 !important;
}

.text-gray-100 {
    color: #f8f9fc !important;
}

.text-gray-200 {
    color: #eaecf4 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-400 {
    color: #d1d3e2 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-600 {
    color: #858796 !important;
}

.text-gray-700 {
    color: #6e707e !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-900 {
    color: #3a3b45 !important;
}

/* Background Colors */
.bg-primary {
    background-color: #4e73df !important;
}

.bg-success {
    background-color: #1cc88a !important;
}

.bg-info {
    background-color: #36b9cc !important;
}

.bg-warning {
    background-color: #f6c23e !important;
}

.bg-danger {
    background-color: #e74a3b !important;
}

.bg-secondary {
    background-color: #858796 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #5a5c69 !important;
}

.bg-gradient-primary {
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
}

/* Chart Styles */
.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

/* Login Page Styles */
.bg-login-image {
    background: url("../images/login-bg.jpg");
    background-position: center;
    background-size: cover;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }

    .sidebar-sticky {
        height: auto;
    }

    .content {
        padding: 1rem;
    }

    .chart-area {
        height: 15rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
