/* static/css/components.css */
/* --- Buttons --- */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px 25px;
    letter-spacing: 0.5px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    /* اصلاح شد: استفاده از متغیر صحیح */
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
    color: white; /* اطمینان از سفید ماندن متن */
}

/* استایل جدید برای دکمه‌های سفید (در گالری) */
.btn-white {
    background-color: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.btn-white:hover {
    background-color: var(--bg-light);
    border-color: var(--border-light);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- Accordion --- */
.accordion-button:not(.collapsed) {
    color: var(--accent-hover); /* اصلاح شد */
    background-color: rgba(251, 113, 133, 0.1); /* رنگ هماهنگ با accent */
}
.accordion-button:focus { 
    box-shadow: 0 0 0 0.25rem rgba(251, 113, 133, 0.25); /* اصلاح شد */
}

/* --- Sticky Consultation Button --- */
.sticky-consultation-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: all 0.3s ease;
    border: 2px solid white;
    animation: pulse-animation 2s infinite;
}

.sticky-consultation-btn:hover {
    background-color: var(--accent-hover); /* اصلاح شد */
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(251, 113, 133, 0.4); /* اصلاح شد */
    animation: none;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(251, 113, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}

/* --- Modern Password Input Styling --- */
.password-group-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-md); 
    background-color: #fff;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.password-group-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15); 
}

.password-group-wrapper input.form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 15px; 
    height: 48px; 
}

.password-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    height: 100%;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

.password-toggle-btn i {
    font-size: 1.2rem;
}