/* ============================================
   CARIRS Logo & Watermark Styles
   ============================================ */

/* 1. Logo للصفحة الرئيسية والهيدر */
.carirs-logo {
    display: inline-block;
    max-width: 200px;
    height: auto;
}

.carirs-logo-large {
    max-width: 300px;
}

/* 2. Logo لصفحة تسجيل الدخول */
.carirs-login-logo {
    display: block;
    margin: 0 auto 30px;
    max-width: 250px;
    height: auto;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. علامة مائية للتقارير - نسخة الصورة */
.carirs-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0.12; /* زيادة الشفافية قليلاً لتكون ظاهرة بوضوح */
    pointer-events: none;
    z-index: 0;
    width: 60%;
    max-width: 700px;
    filter: grayscale(100%) contrast(50%); /* جعلها تبدو كعلامة مائية كلاسيكية */
}

/* 4. علامة مائية نصية - CARIRS */
.carirs-text-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    font-weight: 900;
    color: #e0e0e0;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 10px;
}

/* 5. علامة مائية للطباعة */
@media print {
    .carirs-watermark,
    .carirs-text-watermark {
        opacity: 0.05 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* 6. علامة مائية متكررة (نمط شبكي) */
.carirs-watermark-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 200px,
        rgba(102, 126, 234, 0.03) 200px,
        rgba(102, 126, 234, 0.03) 400px
    );
}

.carirs-watermark-pattern::before {
    content: 'CARIRS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 100px;
    font-weight: 900;
    color: #e0e0e0;
    opacity: 0.08;
    font-family: 'Arial Black', sans-serif;
}

/* 7. Logo في Footer */
.carirs-footer-logo {
    max-width: 150px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carirs-footer-logo:hover {
    opacity: 1;
}

/* 8. Logo في التقارير (Header) */
.carirs-report-header-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

/* 9. Favicon و App Icons */
.carirs-favicon {
    width: 32px;
    height: 32px;
}

/* 10. علامة مائية للصفحات الحساسة */
.carirs-confidential-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 80px;
    font-weight: 900;
    color: #ff0000;
    opacity: 0.1;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

.carirs-confidential-watermark::before {
    content: 'CONFIDENTIAL - CARIRS';
}

/* ============================================
   استخدامات خاصة
   ============================================ */

/* للاستخدام في PDF */
.pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 100px;
    font-weight: 900;
    color: #cccccc;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 15px;
}

/* للاستخدام في الإيميلات */
.email-logo {
    max-width: 200px;
    display: block;
    margin: 0 auto 20px;
}

/* للاستخدام في الإشعارات */
.notification-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .carirs-logo {
        max-width: 150px;
    }
    
    .carirs-login-logo {
        max-width: 200px;
    }
    
    .carirs-text-watermark {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .carirs-logo {
        max-width: 120px;
    }
    
    .carirs-text-watermark {
        font-size: 40px;
        letter-spacing: 5px;
    }
}
