﻿/*#region Home Layout */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/* Modal Backdrop Fix */
.modal-backdrop.show {
    opacity: 0.8 !important;
}

/* Danger Modal Header */
.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
    background-color: #8b5e3c;
    border-color: #5c3d24;
}

.pagination .page-link {
    color: #5c3d24;
}

    .pagination .page-link:hover {
        color: #8b5e3c;
    }

/* Card Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/*#endregion */

/*#region SignUpSuccess */

.container-box {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.action-link {
    color: #D2691E;
    / text-decoration: none;
    font-weight: bold;
}

    .action-link:hover {
        text-decoration: underline;
        color: #A85216;
    }


.btn-custom {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D2691E;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

    .btn-custom:hover {
        background-color: #A85216;
    }


/*#endregion */

/*#region ForgotPassword */


.container-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-custom {
    padding: 10px;
    font-size: 16px;
    background-color: #D2691E;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .btn-custom:hover {
        background-color: #A85216;
    }

.text-danger {
    color: #A85216;
}

/*#endregion */

/*#region ForgotPasswordConfirmation */
.container-box {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.action-link {
    color: #D2691E;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

    .action-link:hover {
        background-color: #D2691E;
        color: white;
        text-decoration: none;
    }

/*#endregion */

/*#region ResendConfirmationEmail */
.container-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-custom {
    padding: 10px;
    font-size: 16px;
    background-color: #D2691E;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .btn-custom:hover {
        background-color: #A85216;
    }

.text-danger {
    color: #A85216;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #A85216;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

    .alert-danger ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .alert-danger li {
        font-size: 14px;
    }
/*#endregion */

/*#region Confirm Logout */
.container-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #D2691E;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background-color: #A85216;
    }

.btn-secondary {
    background-color: #8B6F47;
    color: white;
}

    .btn-secondary:hover {
        background-color: #6F5C3F;
    }

.logout-btn {
    width: 120px;
    padding: 12px 0;
}
/*#endregion */

/*#region ResetPassword */
.container-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-custom {
    padding: 10px;
    font-size: 16px;
    background-color: #D2691E;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .btn-custom:hover {
        background-color: #A85216;
    }


.text-danger {
    color: #A85216;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 8px;
    width: 100%;
}

.alert-danger {
    background-color: #f8d7da;
    color: #A85216;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

    .alert-danger ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .alert-danger li {
        font-size: 14px;
    }

/*#endregion */

/*#region ResetPasswordConfirmation */
.container-box {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #F5E8C7;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.action-link {
    color: #D2691E;
    text-decoration: none;
    font-weight: bold;
}

    .action-link:hover {
        text-decoration: underline;
        color: #A85216;
    }

/*#endregion */

/*#region _Layout */

body {
    font-family: 'Tajawal', sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

.dropdown-megamenu {
    right: 0 !important;
    left: auto !important;
}

.rtl-dropdown {
    text-align: right;
    direction: rtl;
}

.bg-primary {
    background-color: #8f7668 !important;
}

.text-primary {
    color: #8f7668 !important;
}

.footer-bg {
    background-color: rgb(165, 97, 42) !important;
}

/* Notification Styles - Improved Version */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
    width: 350px;
}

.alert-notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.3s ease forwards;
}

    .alert-notification.show {
        opacity: 1;
        transform: translateY(0);
    }

    .alert-notification .icon {
        font-size: 1.5rem;
        margin-right: 1rem;
    }

.alert-success {
    background-color: #f6ffed;
    color: #52c41a;
    border-left-color: #52c41a;
}

.alert-danger {
    background-color: #fff2f0;
    color: #ff4d4f;
    border-left-color: #ff4d4f;
}

.alert-info {
    background-color: #e6f7ff;
    color: #1890ff;
    border-left-color: #1890ff;
}

.alert-warning {
    background-color: #fffbe6;
    color: #faad14;
    border-left-color: #faad14;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@@media (max-width: 768px) {
    .notification-container {
        width: 90%;
        left: 5%;
        right: 5%;
        top: 70px;
    }
}

/* Delete Modal Specific Styles */
.modal-danger .modal-header {
    background-color: #dc3545;
    color: white;
    border-bottom: none;
}

.modal-danger .alert {
    border-left: 4px solid #dc3545;
    background-color: rgba(248, 215, 218, 0.2);
}

.modal-danger .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s;
}

    .modal-danger .btn-danger:hover {
        background-color: #bb2d3b;
        border-color: #b02a37;
    }

/* Theme color overrides */
.bg-primary {
    background-color: rgb(165, 97, 42) !important;
}

.text-primary {
    color: rgb(165, 97, 42) !important;
}

.btn-primary {
    background-color: rgb(165, 97, 42);
    border-color: rgb(165, 97, 42);
}

    .btn-primary:hover {
        background-color: rgb(145, 85, 37);
        border-color: rgb(145, 85, 37);
    }

/* Badge color */
.badge.bg-primary {
    background-color: #8f7668 !important;
}

/* Fix for RTL dropdown */
.rtl-dropdown {
    text-align: left;
    direction: ltr;
}


/*#endregion */

/*#region AccessDenied */

.action-link {
    color: #D2691E; /* برتقالي محروق */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

    .action-link:hover {
        background-color: #D2691E;
        color: white;
        text-decoration: none;
    }

/*#endregion */

/*#region table responsiveness  */
* Improved table responsiveness */
@media (max-width: 992px) {
    .table-responsive

{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    display: block;
}

    .table thead {
        display: none;
    }

    .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--wood-light);
        border-radius: 8px;
    }

    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-top: 1px solid var(--wood-light);
        border-right: none;
    }

        .table td::before {
            content: attr(data-label);
            position: absolute;
            left: 0.8rem;
            width: calc(50% - 1.6rem);
            padding-right: 10px;
            font-weight: 600;
            text-align: left;
            color: var(--wood-dark);
        }

        .table td:first-child {
            border-top: none;
        }

.action-buttons {
    min-width: auto;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

    .btn-group .btn {
        flex: 1;
        min-width: 80px;
    }

}

/* Improved description handling */
.table td:nth-child(2) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .table td:nth-child(2) {
        max-width: none;
        white-space: normal;
        text-overflow: clip;
    }
}

/* Add data-labels for mobile view */
.table td {
    data-label: attr(data-column);
}


/*#endregion */
