﻿.btn-outline-danger {
    color: #d9534f;
    border: 1px solid #d9534f;
    background-color:transparent ;

}
    .btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active, .btn-outline-danger.active{
        color: black;
        border: 1px solid #d9534f;
        background-color: mistyrose;
    }



.btn-outline-warning {
    color: black;
    border: 1px solid #f0ad4e;
    background-color: transparent;
}

    .btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active, .btn-outline-warning.active  {
        color: black;
        border: 1px solid #f0ad4e;
        background-color: lightyellow;
    }

.toolbar-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.search-box {
    border-radius: 20px;
}

.btn-outline-primary {
    color: #428bca;
    border: 1px solid #428bca;
    background-color: transparent;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus .btn-outline-primary:active, .btn-outline-primary.active{
        color: black;
        border: 1px solid #428bca;
        background-color: cornflowerblue;
    }

   

.btn-outline-success {
    color: #5cb85c;
    border: 1px solid #5cb85c;
    background-color: transparent;
}

    .btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active ,.btn-outline-success.active {
        color: black;
        border: 1px solid #5cb85c;
        background-color: darkseagreen;
    }
.xan-table {
    background: white;
    border-radius: 8px;
    overflow: visible; /* ← تم تغييرها من hidden إلى visible */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-collapse: separate; /* ضرورية لتفعيل border-radius على الخلايا */
    border-spacing: 0;
}

    .xan-table thead {
        background: #2c5aa0;
        color: white;
    }

    .xan-table th {
        font-weight: 600;
    }

    .xan-table tbody tr:hover {
        background: #f5f8ff;
    }

    /* الحفاظ على الشكل الدائري للزوايا بعد إزالة overflow: hidden */
    .xan-table thead tr:first-child th:first-child {
        border-top-left-radius: 8px;
    }

    .xan-table thead tr:first-child th:last-child {
        border-top-right-radius: 8px;
    }

    .xan-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .xan-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }


.page-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

    .page-header h2 {
        font-weight: 600;
        color: #2c5aa0;
    }

    .page-header h3 {
        font-weight: 600;
        color: #2c5aa0;
    }

    .page-header h4 {
        font-weight: 600;
        color: #2c5aa0;
    }

    .page-header small {
        color: #888;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    margin-right: 10px;
}

    .switch input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 2;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #dcdcdc;
    transition: .3s;
    border-radius: 34px;
}
.switch .slider {
    pointer-events: none; /* حتى لا يعترض النقر فوق input */
}
    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        background: white;
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

input:checked + .slider {
    background: #28a745;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


.tooltip1 {
    position: relative;
    display: inline-block;
   /* border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

    /* Tooltip text */
    .tooltip1 .tooltiptext1 {
        visibility: hidden;
        width: 120px;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        /* Position the tooltip text - see examples below! */
        position: absolute;
        z-index: 1;
    }

    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip1:hover .tooltiptext1 {
        visibility: visible;
    }

.ShowOnlyPrint {
    display: none
}

/* إضافة إلى ملف CSS الرئيسي */
.chat-input-form {
    margin-top: 10px;
}

#chattext:focus {
    border-color: #5cb85c;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.2);
    outline: none;
}

.btn-success {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

    .btn-success:hover {
        background-color: #449d44;
        border-color: #398439;
    }

.panel-warning > .panel-heading {
    background-color: #f0ad4e;
    border-color: #eea236;
    color: white;
}

.message-sent .message-bubble:after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.bubble-sent:after {
    right: -8px;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent #DCF8C6 transparent;
}

.bubble-received:after {
    left: -8px;
    border-width: 0 10px 10px 0;
    border-color: transparent #FFFFFF transparent transparent;
}



/* تحسين التصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .message-wrapper {
        max-width: 90% !important;
    }

    .message-sent .message-wrapper {
        margin-left: 10% !important;
    }

    .message-received .message-wrapper {
        margin-right: 10% !important;
    }
}

.TextBox100Size {
    max-width: 100% !important;
    width: 100% !important;
}

.custom-toast {
    position: fixed !important;
    top: 20px;
    right: 20px;
    z-index: 9999 !important;
    min-width: 300px;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}


/* Modern Page Header Style */
.page-header {
    margin-bottom: 25px;
    position: relative;
    /* المسافة من الأعلى - عدل هذه القيمة */
    margin-top: 5px;
    border-bottom:none ;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    /* المسافة الداخلية - قللناها */
    padding: 5px 0;
}

.header-text {
    flex: 1;
}

.header-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.header-subtitle {
    /* قللنا المسافة العلوية */
    margin: 3px 0 0 0;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-line {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, transparent 100%);
    border-radius: 3px;
    /* قللنا المسافة العلوية للخط */
    margin-top: 8px;
}