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;
    font-family: Cairo;
}

.brown-hover:hover {
    color: #753a18 !important;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 120px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    background-color: white;
    color: #753a18;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background-color: #f8f9fa;
    color: #753a18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    color: #753a18;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Image Container */
.image-container {
    position: relative;
    padding: 20px;
}

.about-illustration {
    width: 100%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

.accordion-button::after {
    margin-left: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: #753a18;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    color: #753a18;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #753a18;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Partner Section */
.partner-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.partner-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partner-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.partner-link:hover {
    transform: scale(1.05);
}

.partner-name {
    color: #753a18;
    font-weight: 700;
    font-size: 2rem;
    margin: 20px 0;
}

.btn-outline-primary {
    border-color: #753a18;
    color: #753a18;
}

.btn-outline-primary:hover {
    background-color: #753a18;
    border-color: #753a18;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .btn-light {
    background-color: white;
    color: #753a18;
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-brown {
    color: white;
    background-color: #753a18;
}

.btn-brown:hover {
    background-color: #5a2e0f;
    color: white;
}

.brown {
    color: #753a18;
}

.bg-light-brown {
    background-color: #f5f0ec;
}

.active-brown {
    background-color: #8B4513;
    color: white;
}

.active-brown:hover {
    background-color: #753a18;
    color: white;
}

/* RTL Support */
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title {
    font-family: Cairo;
}

/* Laws Page Styles */
.law-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.law-card:hover {
    box-shadow: 0 15px 40px rgba(117, 58, 24, 0.15);
    border-color: #753a18;
}

.law-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.law-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.law-card:hover .law-card-img {
    transform: scale(1.1);
}

.law-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(117, 58, 24, 0.3) 100%);
    transition: background 0.3s ease;
}

.law-card:hover .law-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(117, 58, 24, 0.5) 100%);
}

.law-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.law-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(117, 58, 24, 0.2);
}

.law-number i {
    font-size: 1rem;
}

.law-card-title {
    color: #753a18;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 120px;
    display: flex;
    align-items: center;
}

.law-card-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #753a18 0%, #8B4513 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(117, 58, 24, 0.2);
}

.btn-read-more:hover {
    background: linear-gradient(135deg, #5a2e0f 0%, #753a18 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(117, 58, 24, 0.3);
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: black;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .about-illustration {
        max-width: 100%;
        margin-top: 30px;
    }

    .law-image-wrapper {
        height: 200px;
    }

    .law-card-body {
        padding: 20px;
    }

    .law-card-title {
        font-size: 1.1rem;
        height: auto;
        min-height: 80px;
    }
}

@media (max-width: 576px) {
    .law-card {
        margin-bottom: 20px;
    }

    .law-number {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* ============================== */
/* شريط أدوات صفحات القوانين */
/* ============================== */

.law-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f5f0ec 0%, #fff 100%);
    border: 2px solid #e8ddd4;
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(117, 58, 24, 0.08);
    flex-wrap: wrap;
    gap: 15px;
    /* جعل الشريط ثابت في الأعلى */
    position: sticky;
    top: 120px;
    /* تحت الـ navbar مع مسافة إضافية */
    z-index: 100;
}

.toolbar-label {
    font-weight: 700;
    color: #753a18;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-label::before {
    content: '📑';
    font-size: 1.3rem;
}

.toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #753a18;
    border-radius: 10px;
    background: white;
    color: #753a18;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.toolbar-btn:hover {
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(117, 58, 24, 0.3);
}

.toolbar-btn svg {
    transition: transform 0.3s ease;
}

.toolbar-btn:hover svg {
    transform: scale(1.1);
}

/* حاوية البحث */
.toolbar-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: white;
    border: 2px solid #753a18;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 10px 30px rgba(117, 58, 24, 0.2);
    z-index: 1000;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 350px;
}

.search-box.active {
    display: flex;
}

.search-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
    min-width: 150px;
}

.search-box input:focus {
    border-color: #753a18;
    box-shadow: 0 0 0 3px rgba(117, 58, 24, 0.1);
}

.search-nav-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-nav-btn {
    background: #f5f0ec;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #753a18;
}

.search-nav-btn:hover {
    background: #753a18;
    color: white;
}

.search-go-btn {
    background: linear-gradient(135deg, #753a18, #8B4513);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.search-go-btn:hover {
    background: linear-gradient(135deg, #5a2e0f, #753a18);
    transform: scale(1.05);
}

.search-counter {
    font-size: 0.85rem;
    color: #666;
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.search-clear-btn {
    background: #ff6b6b;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.search-clear-btn:hover {
    background: #ee5a5a;
}

/* زر البحث في القانون التالي */
.search-next-law-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.search-next-law-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: scale(1.05);
}

.search-next-law-btn svg {
    width: 14px;
    height: 14px;
}

/* رسالة عدم وجود نتائج */
.search-not-found-message {
    position: fixed;
    top: 140px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

.search-not-found-message .not-found-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-not-found-message .not-found-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-other-laws-btn {
    background: white;
    color: #753a18;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.search-other-laws-btn:hover {
    background: #ffd93d;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-other-laws-btn svg {
    width: 14px;
    height: 14px;
}

/* رسالة عدم وجود نتائج في كل القوانين */
.search-not-found-all {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #753a18;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    text-align: center;
    max-width: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.search-not-found-all-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    backdrop-filter: blur(5px);
}

.search-not-found-all h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.search-not-found-all p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.search-not-found-all .searched-term {
    font-weight: 700;
    color: #753a18;
}

.search-not-found-all button {
    background: linear-gradient(135deg, #753a18, #8b4513);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s ease;
}

.search-not-found-all button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(117, 58, 24, 0.4);
}

/* تمييز نتائج البحث */
.search-highlight {
    background: linear-gradient(135deg, #ffd93d, #ffb347);
    padding: 2px 4px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(255, 179, 71, 0.4);
}

.search-highlight.current {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

/* ============================== */
/* مؤشر جاري البحث */
/* ============================== */

.search-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(117, 58, 24, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.search-loading-overlay.active {
    display: flex;
}

.search-loading-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.search-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-loading-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.search-loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.search-loading-content #searchLoadingTerm {
    font-weight: 700;
    color: #ffd93d;
}

.search-loading-page {
    font-size: 0.95rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

/* ============================== */
/* نافذة الطباعة المنبثقة */
/* ============================== */

.print-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.print-modal-overlay.active {
    display: flex;
}

.print-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.print-modal-header {
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.print-modal-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.print-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.print-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.print-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    color: #856404;
    font-weight: 500;
    margin-bottom: 20px;
}

.page-selector {
    margin-bottom: 20px;
}

.page-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.page-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-select:focus {
    border-color: #753a18;
    box-shadow: 0 0 0 3px rgba(117, 58, 24, 0.1);
}

.print-preview {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.print-modal-footer {
    background: #f5f0ec;
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 10px 25px;
    border: 2px solid #999;
    border-radius: 10px;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #f0f0f0;
    border-color: #666;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-print:hover {
    background: linear-gradient(135deg, #5a2e0f, #753a18);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(117, 58, 24, 0.3);
}

/* ============================== */
/* أنماط نافذة النسخ */
/* ============================== */

.copy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.copy-modal-overlay.active {
    display: flex;
}

.copy-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.copy-modal-header {
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-modal-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.copy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.copy-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.copy-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    color: #856404;
    font-weight: 500;
    margin-bottom: 20px;
}

.copy-preview {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copy-modal-footer {
    background: #f5f0ec;
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #5a2e0f, #753a18);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(117, 58, 24, 0.3);
}

/* تنبيه النسخ الناجح */
.copy-success-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(117, 58, 24, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
}

.copy-success-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================== */
/* أنماط الطباعة */
/* ============================== */

@media print {

    /* إخفاء العناصر غير المطلوبة */
    .law-toolbar,
    .sidebar-nav,
    .law-hero,
    .scroll-top,
    nav,
    footer,
    .print-modal-overlay,
    .copy-modal-overlay,
    header,
    .law-image-container,
    img {
        display: none !important;
    }

    /* تنسيق المحتوى للطباعة */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }

    .section-card {
        box-shadow: none !important;
        border: none !important;
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
    }

    .section-title-custom {
        font-size: 14pt !important;
        color: black !important;
        border-bottom: 2px solid #333 !important;
    }

    /* العلامة المائية */
    .print-watermark {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 60pt;
        color: rgba(117, 58, 24, 0.08);
        font-weight: 900;
        white-space: nowrap;
        z-index: -1;
        pointer-events: none;
    }

    /* منع طباعة أكثر من صفحة واحدة */
    .print-single-page {
        page-break-after: always;
    }

    .print-hidden {
        display: none !important;
    }
}

/* عنصر العلامة المائية للطباعة */
#printWatermark {
    display: none;
}

@media print {
    #printWatermark {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 50pt;
        color: rgba(117, 58, 24, 0.1);
        font-weight: 900;
        white-space: nowrap;
        z-index: 9999;
        pointer-events: none;
    }
}

/* ============================== */
/* تنبيه النسخ */
/* ============================== */

.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #753a18, #8B4513);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(117, 58, 24, 0.4);
    z-index: 10000;
    display: none;
    animation: slideInUp 0.3s ease;
    max-width: 350px;
}

.copy-notification.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-notification svg {
    flex-shrink: 0;
}

.copy-notification span {
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================== */
/* تصميم متجاوب للشريط */
/* ============================== */

@media (max-width: 768px) {
    .law-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .toolbar-label {
        justify-content: center;
        margin-bottom: 10px;
    }

    .toolbar-buttons {
        justify-content: center;
    }

    .toolbar-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .toolbar-btn span {
        display: none;
    }

    .search-box {
        min-width: 280px;
        flex-wrap: wrap;
    }

    .print-modal {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .toolbar-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .toolbar-btn {
        flex: 1;
        justify-content: center;
        min-width: 45px;
    }

    .search-box {
        min-width: 250px;
        left: 0;
        transform: none;
    }
}