/**
 * منصة أسناني (Asnany) - الأنماط والتصميم البصري المخصص (Custom CSS)
 */

:root {
    --color-teal: #0D9488;
    --color-teal-dark: #0F766E;
    --color-teal-light: #F0FDFA;
    --color-blue: #0284C7;
    --color-navy: #0F172A;
    --color-gold: #F59E0B;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
    background-color: #F8FAFC;
    color: #334155;
    direction: rtl;
    text-align: right;
}

/* Backgrounds & Colors */
.bg-teal {
    background-color: var(--color-teal) !important;
}

.bg-teal-subtle {
    background-color: #CCFBF1 !important;
    color: #0F766E !important;
}

.text-teal {
    color: var(--color-teal) !important;
}

.btn-teal {
    background-color: var(--color-teal);
    color: #FFFFFF;
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-teal:hover {
    background-color: var(--color-teal-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-outline-teal {
    border: 1.5px solid var(--color-teal);
    color: var(--color-teal);
    background: transparent;
}

.btn-outline-teal:hover {
    background-color: var(--color-teal);
    color: #FFFFFF;
}

/* Brand badge */
.brand-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0284C7, #0D9488);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14pt;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.3);
}

.brand-title {
    color: #FFFFFF;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 7.5pt;
    color: #CCFBF1;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0F766E 0%, #0369A1 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #0D9488, #0284C7) !important;
}

/* Cards & Hover effects */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0D9488, #0284C7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18pt;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.25);
}

.step-badge {
    width: 44px;
    height: 44px;
    background: #E0F2FE;
    color: #0284C7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15pt;
    font-weight: 800;
}

/* Dashboard nav */
.dashboard-nav .nav-link {
    color: #475569;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 9.5pt;
    font-weight: 600;
    transition: all 0.15s ease;
}

.dashboard-nav .nav-link:hover {
    background-color: #F1F5F9;
    color: var(--color-teal);
}

.dashboard-nav .nav-link.active {
    background-color: #CCFBF1;
    color: #0F766E;
    font-weight: 700;
}

/* Watermarked Photos */
.watermarked-photo-box {
    overflow: hidden;
    min-height: 120px;
}

.watermark-overlay {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #F8FAFC;
    font-size: 7.5pt;
    padding: 2px 4px;
    backdrop-filter: blur(2px);
}

/* AI Assistant Floating Widget */
#ai-assistant-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1050;
}

#ai-assistant-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0D9488, #0284C7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
    transition: transform 0.2s ease;
}

#ai-assistant-btn:hover {
    transform: scale(1.08);
}

#ai-assistant-card {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 330px;
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-in-out;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 90%;
    line-height: 1.4;
}

.assistant-bubble {
    background-color: #F1F5F9;
    color: #1E293B;
    border-bottom-right-radius: 2px;
}

.user-bubble {
    background-color: #0D9488;
    color: #FFFFFF;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
