/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
}

body {
    background-color: var(--light-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}


.h1Size {
    font-size: 23px;
    margin-bottom: 10px !important;
}

.h2Size,
.article-content h2 {
    font-size: 21px;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.h3Size,
.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.titleHero {
    margin-top: -90px;
}

.logoArea a {
    display: grid;
    justify-items: center;
    text-decoration: none;
    color: #222f3e;
}

span.childSpan {
    background: #e8eef4;
    padding: 0px 5px;
    border-radius: 6px;
    color: #222f3e;
}

.empty-state svg {
    width: 40px;
    height: 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sidebar {
    width: 280px;
}

.logoArea svg {
    width: 80px;
    height: 80px;
}

.bg-MainColor {
    background: #cc0000 !important;
    color: #fff !important;
}

.bg-MainColor:hover {
    background: #cc0000 !important;
}

.textBlueeee {
    color: #00a8ff;
}

.bg-activeButton.active {
    background: #E0E0E0 !important;
    color: #242424 !important;
}

.btn-outline-primary {
    border-color: #cc0000 !important;
    color: #cc0000 !important;
}

img.logTB {
    width: 65px;
}

.blur-bg {
    backdrop-filter: blur(3px);
}

.divider {
    width: 100%;
    border-bottom: 2px dashed #ddd;
}

.btn-primary {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff !important;
}

.btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
}

.btn:disabled {
    background: #90A4AE;
    border-color: #607D8B;
    color: #000000 !important;
}

.text-primary {
    color: #cc0000 !important;
}

.bg-LightColor {
    background: #c8d6e569 !important;
}

.bg-dark {
    background-color: #1e222bc7 !important;
    z-index: 9998 !important;
    backdrop-filter: blur(2px);
}

.btn-outline-black {
    border-color: #353b48;
}

.textColorMain {
    color: #353b48 !important;
}

.bg-yellowColor {
    background: #feca57;
    border: none;
}

.bg_redColor {
    background: #ff6b6b1c;
    color: #ff6b6b;
    border-color: #ff6b6b5c;
    fill: #ff6b6b
}

.bg_redColor:hover {
    background: #ff6b6b1c;
    color: #ff6b6b;
    border-color: #ff6b6b5c;
}

.bg-yellowColor:hover {
    background: #feca57;
    border: none;
}

.bg-gradiant {
    background: #f1f1f1;
}

.text-BlackBlue {
    color: #222f3e;
}

.titleWeight {
    font-weight: 1000;
}

.badge {
    font-weight: 400 !important;
}

.bg-greenColor {
    background: #1dd1a1 !important;
    color: #fff !important;
}

.greenLight {
    color: #26de81;
    background: #26de812e;
    border-color: #26de8152;
}

.optionsBox {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 5px;
    background: #fff;
    box-shadow: 0 6px 19px 3px #22222226;
}

.p.textSizeP {
    font-size: 20px;
}

.heroTop img {
    margin: 0 auto;
    display: block;
    margin-bottom: 21px;
}

p.borderBottomStyle.lead.text-secondary.mb-0 {
    position: relative;
}

/* .borderBottomStyle:after {
    border-bottom: 4px solid #FFC107;
    content: "";
    width: 100px;
    position: absolute;
    bottom: -9px;
    border-radius: 7px;
    transform: translate(-50%, 50%);
    left: 50%;
} */
section#welcome {
    min-height: 900px;
}

.custom-sidebar::-webkit-scrollbar {
    width: 8px;
}

.custom-sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.custom-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.custom-sidebar:hover::-webkit-scrollbar-thumb {
    background: #CFD8DC;
}

.custom-sidebar::-webkit-scrollbar-thumb:hover {
    background: #CFD8DC;
}

.custom-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.custom-sidebar:hover {
    scrollbar-color: #CFD8DC #f1f1f1;
}

.custom-sidebar nav a {
    transition: all 0.3s ease;
}

.custom-sidebar nav a:hover {
    background-color: rgba(38, 117, 244, 0.1);
    transform: translateX(-3px);
}

.bg_redColor:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border-radius: 10px;
}


/* Mobile Responsive Styles */
@media (max-width: 991.98px) {

    /* Sidebar hidden by default on mobile */
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* Main wrapper full width on mobile */
    .main-wrapper {
        margin-right: 0 !important;
    }

    /* Header adjustments for mobile */
    header.sticky-top {
        padding: 0.75rem !important;
    }

    /* Main content padding for mobile */
    main.flex-grow-1 {
        padding: 1rem !important;
    }

    /* Toast container for mobile */
    #toast-container {
        right: 12px;
        left: 12px;
        bottom: 80px;
    }

    .notification-toast {
        width: 100%;
    }

    /* Stats cards adjustments */
    .card-body {
        padding: 0.75rem;
    }

    /* Table header text smaller on mobile */
    .table th {
        font-size: 11px;
        padding: 0.5rem 0.25rem;
    }

    .table td {
        font-size: 13px;
        padding: 0.5rem 0.25rem;
    }

    /* Welcome card on mobile */
    .bg-MainColor.p-4 {
        padding: 1rem !important;
    }

    .bg-MainColor h2 {
        font-size: 1.25rem;
    }

    .bg-MainColor p {
        font-size: 0.875rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {

    /* Even smaller padding */
    main.flex-grow-1 {
        padding: 0.75rem !important;
    }

    /* Smaller icon boxes */
    .card-body [style*="width:56px"] {
        width: 40px !important;
        height: 40px !important;
    }

    .card-body h3 {
        font-size: 1.25rem;
    }

    /* Hide some table columns on very small screens */
    .table-responsive {
        font-size: 12px;
    }
}





/**
 * Toast Notifications Styles
 * RTL-ready, minimal, modern design
 */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}


.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    min-width: 320px;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #10b981;
    color: white;
}

.toast-warning .toast-icon {
    background: #f59e0b;
    color: white;
}

.toast-error .toast-icon {
    background: #ef4444;
    color: white;
}

.toast-info .toast-icon {
    background: #3b82f6;
    color: white;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

.toast-action {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.toast-action:hover {
    background: #f3f4f6;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRTL {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] .toast {
    animation: slideInRTL 0.3s ease-out;
}

.toast-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Notification Badge */
.notification-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-bell .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

[dir="rtl"] .notification-bell .notification-badge {
    right: auto;
    left: -8px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    [dir="rtl"] #toast-container {
        right: 10px;
        left: 10px;
    }

    .toast,
    .notification-toast {
        min-width: auto;
    }
}

/* Notification Toast Styles (used by JS) */
.notification-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    min-width: 320px;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    background: #10b981;
    color: white;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #4b5563;
}

.notification-action {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.notification-action:hover {
    background: #f3f4f6;
}

/* Success State */
.notification-success .notification-icon {
    background: #10b981;
    color: white;
}

/* Warning State */
.notification-warning .notification-icon {
    background: #f59e0b;
    color: white;
}

/* Error State - Red theme */


.notification-error .notification-icon {
    background: #ef4444;
    color: white;
}

.notification-error .notification-close {
    color: #ef4444;
}

.notification-error .notification-close:hover {
    color: #dc2626;
}

.notification-error .notification-title {
    color: #ef4444;
}

/* Info State */
.notification-info .notification-icon {
    background: #3b82f6;
    color: white;
}

/* Service List Responsive */
.service-actions {
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .service-actions {
        justify-content: flex-start;
    }
    section#welcome {
    min-height: auto;
}
.titleHero {
    margin-top: -50px;
}
img.logTB {
    width: 40px;
}
}