:root {
    --dark-blue: #11294F;
    --light-beige: #F8F4ED;
}

body {
    background-color: var(--light-beige);
}

.min-vh-100 {
    min-height: 100vh;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-light-beige {
    background-color: var(--light-beige) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}
.btn-outline-blue {
    border: var(--dark-blue) 2px solid;
    color: var(--dark-blue);
    border-radius: 10px;
    font-weight: bold;

}.btn-outline-blue:hover {
     border: var(--dark-blue) 2px solid;
     background: var(--dark-blue);
     color: #fff;
     border-radius: 10px;
     font-weight: bold;

}
.btn-blue {
    background: var(--dark-blue);
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    border: none;
}
.btn-blue:hover {
    background: #132e60;
    color: #fff;

}
/*-------------------------------------------------------login----------------------------------------------------------*/
.login-card {
    max-width: 900px;
    width: 100%;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.login-illustration {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.form-control {
    border-color: var(--dark-blue) !important;
    border-width: 1px;
    border-radius: 50rem !important;
    padding: 0.75rem 1.25rem;
    height: auto;
}

.form-control:focus {
    border-color: var(--dark-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(26, 62, 93, 0.25) !important;
}

.btn-dark-blue {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
    border-radius: 50rem !important;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
}

.btn-dark-blue:hover {
    background-color: #132e54;
    border-color: #132E47;
    color: white;
}

.btn-outline-dark-blue {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
    border-radius: 50rem !important;
    font-weight: bold;
    padding: 0.375rem 1rem;
}

.btn-outline-dark-blue:hover {
    background-color: var(--dark-blue);
    color: white;
}
.company-logo {
    width: 150px;
    height: 150px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .login-card {
        max-width: 90%;
    }

    .login-card .col-md-6 {
        padding: 2rem !important;
    }

    .login-card > .col-md-6:first-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .login-card > .col-md-6:last-child {
        padding-top: 2rem !important;
    }
}

@media (min-width: 768px) {
    .login-card .col-md-6:first-child {
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .login-card .col-md-6:last-child {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .login-card .col-md-6:not(:last-child) {
        border-inline-end: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.text-muted.small {
    font-size: 0.75rem;
    line-height: 1.4;
}


/*-----------------------------------------------------------------------------------------------------------------*/
/* Header Styles */
.header-logo {
    height: 40px;
    width: auto;
}

/* Invoice Card Styles */
.invoice-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-control {
    border-color: #dee2e6;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Table Styles */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .col-md-2 {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
    }

    .col-md-2.show {
        left: 0;
    }

    .invoice-card {
        padding: 15px !important;
    }

    .table-responsive {
        margin: 0 -15px;
    }
}
.form-select {
    border-color: var(--dark-blue) !important;
    border-width: 1px;
    border-radius: 50rem !important;
    padding: 0.75rem 1.25rem;
    height: auto;
    box-shadow: none !important;
    background-position: left 0.75rem center;
}

.form-select:focus {
    border-color: var(--dark-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(26, 62, 93, 0.25) !important;
}



/*-------------------------------------------------------navbar----------------------------------------------------------*/
.main-navbar {
    position: fixed;
    top: 0;
    /*right: 240px;*/
    left: 0;
    /*width: calc(100% - 190px);*/
    width: 100%;
    height: 65px;
    z-index: 1085;
    transition: right 0.3s, width 0.3s;

}
.search-form .form-control {
    background: #fff;
    border-radius: 0.5rem !important;
    border: none;
    padding-right: 2.5rem;
    padding-left: 1rem;
    height: 38px;
    text-align: right;
    box-shadow: 0 1px 4px rgba(26,62,93,0.07);
    font-size: 1rem;
    width: 300px;
}

.search-form .search-icon {


    right: 50px;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
.custom-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {

    .navbar-collapse {
        background-color: var(--dark-blue);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }
    .navbar-nav {
        flex-direction: column !important;
        gap: 10px !important;

    }
}

@media (max-width: 991.98px) {
    .main-navbar {
        width: 100% !important;
        left: 0;
        right: 0;
        border-radius: 0 !important;
    }
}
@media (min-width: 991px) {
    .logo-991 {
        display: none !important;
    }
}
@media  (max-width: 990.98px) {
    .logo-991 {
        display: block !important;
    }
}
@media (min-width: 555px) {
    .logo-554 {
        display: none !important;
    }
}
@media (max-width: 554.98px) {
    .logo-554 {
        display: block !important;
    }
    .search-form {
        width: 10% !important;
    }
}

/*-------------------------------------------------------sidebar----------------------------------------------------------*/

.logo-container {
    display: inline-block;
    margin-bottom: 1rem;
}
.sidebar-custom {
    background: var(--dark-blue);
    height: 100%;
    min-height: 100vh;
    width: 220px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1090;
    transition: width 0.3s;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.sidebar-custom::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.logo-container img {
    display: block;
    margin: 0 auto;
}

.sidebar-link-custom {
    color: #fff;
    font-weight: bold;
    border-radius:  0 30px 30px 0 ;
    width: 200px;
    padding: 10px 20px;
    transition: background 0.2s, color 0.2s;
    text-align: right;
    background: none;
}

.sidebar-link-custom.active,
.sidebar-link-custom:focus,
.sidebar-link-custom:hover {
    background: #fff;
    color: var(--dark-blue) !important;
}

@media (max-width: 991.98px) {
    .sidebar-custom {
        width: 70px;
        padding: 10px 0;
    }
    .sidebar-custom .logo-container,
    .sidebar-custom .sidebar-desc {
        display: none;
    }
    .sidebar-link-custom {
        text-align: center;
        padding: 10px 0;
        font-size: 0.95rem;
        border-radius: 50%;
        width: 48px;
        margin: 0 auto;
        display: block;
    }
    .sidebar-link-custom span {
        display: none;
    }
}
.dropdown-menu-custom {
    border: 1px solid #eee;
}
.dropdown-item-custom {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    font-weight: bold;
}
.dropdown-item-custom:hover {
    background:#fff !important;
    color: var(--dark-blue);
    border-radius:  0 30px 30px 0 ;
}


@media (max-width: 575.98px) {
    .sidebar-custom {
        position: absolute;
        min-height: 100vh;
        width: 100vw;
        border-radius: 0;
        left: 0;
        right: 0;
        top: 0;
        z-index: 2000;
    }
}

/*-------------------------------------------------------invoice----------------------------------------------------------*/

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: white;
    height: 60px;


}
.invoice-header h4 {
    font-weight: bold;
    color: var(--dark-blue);
}

.btn-new-invoice {
    background: var(--dark-blue);
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    /*padding: 8px 24px;*/
    border: none;
}
.btn-new-invoice:hover {
    background: #132e60;
    color: #fff;

}
@media (max-width: 990.98px) {
    .invoice-container {
        margin-right: auto !important;
    }
}
.invoice-info-box {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 18px;
}
.invoice-info-box .fw-bold {
    color: var(--dark-blue);
    font-size: 1.05rem;
}
.invoice-info-box .fw-normal {
    color: #000;
    font-weight: normal;
}
@media (max-width: 767.98px) {
    .invoice-info-box .row > div {
        margin-bottom: 10px;
    }
    .invoice-info-box .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }
}
.summary-box-custom {
    background: #fff;
    border-radius: 18px;
    border: 1.5px solid #e0e0e0;
}
.summary-input {
    border: 2px solid var(--dark-blue);
    border-radius: 8px !important;
    text-align: center;
    min-width: 80px;
    width: 500px;
    font-weight: bold;
    height: 40px;
    margin-left: 9px;
}
.summary-textarea{
    border: 2px solid var(--dark-blue);
    border-radius: 8px !important;
    text-align: center;
    min-width: 80px;
    width: 500px;
    font-weight: bold;

    margin-left: 9px;
}
.btn-outline-danger {
    color: #e74c3c;
    border: 1.5px solid #e74c3c;
    background: #fff;
    font-weight: bold;
}
.btn-outline-danger:hover {
    background: #e74c3c;
    color: #fff;
}
.btn-primary {
    font-weight: bold;
    border-radius: 8px;
    background-color: var(--dark-blue) !important;
}
@media (max-width: 767.98px) {
    .summary-box-custom {
        padding: 8px 2px;
    }
    .summary-input {
        min-width: 60px;
        font-size: 0.95rem;
    }
    .btn {
        min-width: 70px;
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
}
 .custom-invoice-table td {
    padding: 4px 4px;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    color: var(--dark-blue);
    background: #fff;
    border-bottom: none;
}
.custom-invoice-table th{
    padding: 4px 4px;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    background-color: var(--dark-blue);
    color: #fff;
    border-bottom: none;
}
.table-input {
    border: 2px solid var(--dark-blue);
    border-radius: 8px;
    min-width: 70px;
    max-width: 90px;
    text-align: center;
    font-weight: bold;
    /*font-size: 1rem;*/
    padding: 2px 6px;
    background: #fff;
}
.custom-invoice-table select.table-input {
    padding-right: 8px;
    padding-left: 8px;
}
.btn-delete-row-table {
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 1.3rem;
    padding: 2px 10px;
    transition: background 0.2s;
}
.btn-delete-row-table:hover {
    background: #c0392b;
}
@media (max-width: 767.98px) {
    .table-input {
        min-width: 40px;
        max-width: 80px;
        font-size: 0.95rem;
        padding: 2px 2px;
    }
    .custom-invoice-table th, .custom-invoice-table td {
        font-size: 0.95rem;
        padding: 2px 2px;
    }
}

/*-------------------------------------------------------dashboard----------------------------------------------------------*/
.dashboard-filters {
    border-radius: 2px;
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 16px;
}
.dashboard-filters li {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dashboard-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
}
.dashboard-dot-clients { background: var(--dark-blue); }
.dashboard-dot-sellers { background: #FFCF55; }
.dashboard-dot-invoices { background: #A4C8E1; }
.dashboard-dot-invoices-received { background: #1877f2; }
.dashboard-filter-label {
    font-weight: 600;
    font-size: 1rem;
}


.manager-avatar-wrapper {
    position: relative;
    display: inline-block;
}
.manager-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--dark-blue);
}
.manager-avatar-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-blue);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.manager-avatar-badge i {
    font-size: 13px;
    color: #fff;
}


.card-title-dark {
    color: var(--dark-blue);
    font-weight: bold;
}
.card-bg-invoice-out {
    background-color: #A4C8E1 !important;
    color: #fff !important;
}
.card-icon-invoice-out {
    color: #A4C8E1 !important;
}

.dashboard-chart-bg {
    background: #fafbfc;
}


.user-dropdown-toggle {
    border: 2px solid var(--dark-blue);
    border-radius: 1rem;
    background: #fff;
    color: var(--dark-blue);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 4px 18px 4px 18px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.user-dropdown-toggle:focus, .user-dropdown-toggle:hover {
    border-color: #1877f2;
    box-shadow: 0 4px 16px rgba(24,119,242,0.10);
    color: #fff !important;
    background: #fff !important;
}
.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.user-dropdown-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
}


.user-dropdown-menu {
    min-width: 260px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(24,41,79,0.13);
    padding: 0 0 8px 0;
    border: none;
    margin-top: 10px;
}
.user-account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(24,41,79,0.10);
}
.user-dropdown-menu-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(24,41,79,0.10);
}
.user-dropdown-menu .dropdown-item {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-blue);
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    padding: 8px 0;
}
.user-dropdown-menu .dropdown-item i {
    font-size: 1.1em;
    margin-left: 6px;
}
.user-dropdown-menu .dropdown-item:hover, .user-dropdown-menu .dropdown-item:focus {
    background: #f3f7fa;
    color: #1877f2;
}
.user-dropdown-menu .dropdown-item.text-danger {
    color: #e74c3c !important;
}
.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: #fbeaea;
    color: #c0392b !important;
}
.user-dropdown-menu .dropdown-divider {
    margin: 0.3rem 0;
}
.sidebar-link-custom.active, .dropdown-item-custom.active {
    background-color: var(--dark-blue);
    color: #fff !important;
}

/*-------------------------------------------------------index----------------------------------------------------------*/

.search-btn {
    background-color: var(--dark-blue)  !important;
    border: none;
    transition: all 0.3s ease;
    color: white;
    padding: 0;
    width: 33px;
    height: 33px;
    border-radius: 50% !important; ;
    position: absolute;
    top: 0;
    left:20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /*box-shadow: 0 2px 5px rgba(253, 42, 83, 0.3);*/
    font-size: 14px;
}

.search-btn:hover {
    background-color: white !important;
}

.search-btn:hover i {
    color: var(--dark-blue) !important;
}

.search-btn i {
    transition: all 0.3s ease;
    font-size: 16px;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
.page-item.active .page-link {
    background-color: var(--dark-blue) !important;
    border-color: var(--dark-blue) !important;
    color: white !important;
}

.page-link {
    color: var(--dark-blue) !important;
}
.filter-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0.375rem 1.2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
@media (max-width: 576px) {
    .filter-btn {
        min-width: 42px;
        min-height: 42px;
        padding: 0 !important;

        font-size: 1.1rem;
    }
    /* .filter-btn span {
        display: none !important;
    } */
}
