@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

body {
    font-family: 'Inter', 'Almarai', sans-serif !important;
    color: #1b1b1c !important;
    background: #f8f9fa !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', 'Almarai', sans-serif !important;
    color: #135591;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

label {
    padding-top: 5px;
    white-space: nowrap;
    font-family: 'Almarai', sans-serif !important;
    font-size: 10.5pt;
    color: #34495e;
}

.error {
    color: #c0392b;
    font-size: 10pt;
}

.container-border {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    background: #ffffff;
}

/* Sidebar & Navigation Overrides */
.left_col,
.nav_title,
.navbar.nav_title,
.main_container {
    background: #135591 !important;
}

.nav_menu {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e4e8 !important;
}

.right_col {
    background: #f8f9fa !important;
    min-height: 100vh !important;
}

.sidebar-footer {
    background: #135591 !important;
}



.nav.side-menu>li.active>a {
    background: #0f467a !important;
}

/* Panels */
.x_panel {
    border: 1px solid #e0e4e8 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.x_title {
    border-bottom: 1px solid #f0f2f5 !important;
    margin-bottom: 15px !important;
}

/* Buttons Modernization */
.btn {
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background-color: #135591 !important;
    border-color: #135591 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0d3d69 !important;
    border-color: #0d3d69 !important;
}

.btn-success {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

.btn-success:hover {
    background-color: #1b5e20 !important;
    border-color: #1b5e20 !important;
}

.btn-danger {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
}

.btn-danger:hover {
    background-color: #b71c1c !important;
    border-color: #b71c1c !important;
}

.btn-warning {
    background-color: #f57c00 !important;
    border-color: #f57c00 !important;
    color: #fff !important;
}

.btn-info {
    background-color: #0288d1 !important;
    border-color: #0288d1 !important;
}

/* Adaptive Button Text */
.btn-adaptive .btn-text {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .btn-adaptive .btn-text {
        display: none;
    }

    .btn-adaptive i {
        margin: 0 !important;
    }
}

/* Navigation & Top Bar */
.nav_menu {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e4e8 !important;
}

.nav.navbar-nav>li>a {
    color: #4b5563 !important;
    font-weight: 500;
}

.nav.navbar-nav>li>a:hover {
    background: #f3f4f6 !important;
    color: #135591 !important;
}

/* Badges & Notifications */
.badge {
    padding: 3px 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.bg-green {
    background: #2e7d32 !important;
    border: none !important;
}

.bg-red {
    background: #d32f2f !important;
    border: none !important;
}

/* PNotify Contrast Fix */
.ui-pnotify-container {
    color: #ffffff !important;
    border-radius: 8px !important;
    border: none !important;
}

.ui-pnotify-title,
.ui-pnotify-text {
    color: #ffffff !important;
}

.ui-pnotify-icon {
    color: #ffffff !important;
}


/* Dropdowns */
.dropdown-menu {
    border: 1px solid #e0e4e8 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
}

.dropdown-menu>li>a {
    padding: 10px 20px !important;
    font-size: 13px !important;
    color: #1b1b1c !important;
}

.dropdown-menu>li>a:hover {
    background: #f3f4f6 !important;
    color: #135591 !important;
}

/* Table Customization */

.x_content {
    overflow-x: auto;
}

table.dataTable {
    width: 100% !important;
}

.table_custom {
    border: 1px solid #e0e4e8;
    width: 100%;
}

.th_custom {
    border: 1px solid #e0e4e8;
    text-align: center;
    font-weight: 700;
    height: 45px;
    background-color: #f8f9fa;
    color: #135591;
}

.td_custom {
    border: 1px solid #f0f2f5;
    text-align: center;
    height: 35px;
}

.th_dark {
    background-color: #34495e;
    color: white;
}

/* Utilities */
.h-160 {
    height: 160px;
}

button i {
    margin-left: 5px;
    margin-right: 5px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.nowrap {
    white-space: nowrap;
}

.form-group {
    padding-right: 15px;
}

.p-0 {
    padding: 0 !important;
}

.pt-0,
.py-0 {
    padding-top: 0 !important;
}

.pr-0,
.px-0 {
    padding-right: 0 !important;
}

.pb-0,
.py-0 {
    padding-bottom: 0 !important;
}

.pl-0,
.px-0 {
    padding-left: 0 !important;
}

.spanOM:hover {
    cursor: pointer;
}

/* Login Page Styling */
.login_custom {
    background: #f0f2f5 !important;
    min-height: 100vh !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none !important;
}


.login_wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    margin: 20px auto !important;
    border: none !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .login_custom {
        justify-content: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
        background: #ffffff !important;
        /* Make background white to match wrapper on mobile */
    }

    .login_wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 !important;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }
}

.login_content h1 {
    font-size: 24px;
    margin-bottom: 30px;
}

.login_content input.form-control {
    border-radius: 8px !important;
    height: 45px;
    border: 1px solid #dcdfe6;
    margin-bottom: 20px !important;
}

.login_content input.form-control:focus {
    border-color: #135591;
    box-shadow: 0 0 0 2px rgba(19, 85, 145, 0.1);
}

.message-container {
    overflow: hidden;
    position: relative;
    height: 50px;
    background-color: #e3f2fd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.scrolling-message {
    position: absolute;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    width: 100%;
    margin: 12px 5px;
    font-size: 12pt;
    color: #135591;
    font-weight: 500;
}

.scrolling-message span {
    color: #d32f2f;
    font-weight: 700;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.warningMsg {
    border: 2px solid #d32f2f !important;
}

.menuDot {
    height: 7px;
    width: 7px;
    background-color: #e90d0d;
    border-radius: 50%;
    display: inline-block;

}

.subMenuDot {
    height: 5px;
    width: 5px;
    background-color: #e90d0d;
    border-radius: 50%;
    display: inline-block;
}
/* classes pour verification matricule proprietaire de la voiture dans OM */
.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #f8d7da;
}
.blink-error {
    color: #dc3545;
    font-weight: bold;
    animation: blink 1s linear infinite;
}

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}