/* نبض الحياة - الألوان المخصصة */
:root {
    --primary-color: #ff4d57;
    --success-color: #31a354;
    --light-color: #e6e6e6;
    --primary-rgb: 255, 77, 87;
    --success-rgb: 49, 163, 84;
    --light-rgb: 230, 230, 230;
}

/* تخصيص ألوان Bootstrap */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e6434d;
    border-color: #e6434d;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #2a8f4a;
    border-color: #2a8f4a;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

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

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

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

/* تدرجات مخصصة */
.bg-gradient-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        #e6434d 100%
    ) !important;
}

.bg-gradient-success {
    background: linear-gradient(
        135deg,
        var(--success-color) 0%,
        #2a8f4a 100%
    ) !important;
}

.bg-gradient-mixed {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--success-color) 100%
    ) !important;
}

/* شريط التقدم */
.progress-bar {
    background-color: var(--success-color);
}

/* الروابط */
a {
    color: var(--primary-color);
}

a:hover {
    color: #e6434d;
}

/* البطاقات */
.card-header {
    background-color: rgba(var(--light-rgb), 0.5);
}

/* النماذج */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* التنبيهات */
.alert-success {
    background-color: rgba(var(--success-rgb), 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* الشارات */
.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* السلايدر */
.carousel-indicators button.active {
    background-color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
        hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* لوحة التحكم */
.sidebar {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--success-color) 100%
    ) !important;
}

/* الأيقونات الملونة */
.text-primary-custom {
    color: var(--primary-color) !important;
}

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

.bg-primary-light {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

.bg-success-light {
    background-color: rgba(var(--success-rgb), 0.1) !important;
}

/* اللوجو */
.logo {
    max-height: 50px;
    width: auto;
}

.logo-large {
    max-height: 80px;
    width: auto;
}

.logo-small {
    max-height: 35px;
    width: auto;
}

/* تحسينات إضافية */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 15px;
}

/* تأثيرات الهوفر */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* تخصيص الجداول */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(var(--light-rgb), 0.3);
}

.table th {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* تخصيص الصفحات */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
    .logo {
        max-height: 40px;
    }

    .logo-large {
        max-height: 60px;
    }
}

/* تحسينات إضافية للألوان */
.navbar {
    border-bottom: 3px solid var(--primary-color);
}

.card:hover {
    border-color: var(--primary-color) !important;
}

.campaign-card .card-img-top {
    border-bottom: 2px solid var(--light-color);
}

.favorite-btn.active {
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-right: 4px solid white;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* تحسين الإحصائيات */
.stats-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

/* تحسين الأزرار */
.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* تحسين الجداول */
.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* تحسين النماذج */
.input-group-text {
    background-color: var(--light-color);
    border-color: var(--light-color);
}

/* تحسين الشارات */
.badge {
    font-weight: 500;
}

/* تحسين الروابط في الشريط الجانبي */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* تحسين الكروت */
.card-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.card-header.bg-success {
    background-color: var(--success-color) !important;
}

/* تحسين الأيقونات */
.text-primary i {
    color: var(--primary-color) !important;
}

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

/* تحسين الخلفيات */
.bg-gradient-primary-light {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.1) 0%,
        rgba(var(--primary-rgb), 0.05) 100%
    );
}

.bg-gradient-success-light {
    background: linear-gradient(
        135deg,
        rgba(var(--success-rgb), 0.1) 0%,
        rgba(var(--success-rgb), 0.05) 100%
    );
}

/* أنيميشنز جميلة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* تطبيق الأنيميشنز */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--primary-rgb), 0.1),
        transparent
    );
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-bounce {
    animation: float 3s ease-in-out infinite;
}

.icon-bounce:hover {
    animation: bounce 0.6s;
}

/* تصميم خطوات العمل */
.step-card {
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card:hover .step-number {
    animation: pulse 0.6s;
}

.step-icon {
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* عداد الأرقام */
.counter-number {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* تحسينات إضافية للكروت */
.campaign-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.campaign-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(var(--primary-rgb), 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.campaign-card:hover::after {
    transform: translateX(100%);
}

.campaign-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* تأثيرات الأزرار */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* تحسينات السلايدر */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: scale(1.1);
}

/* تأثيرات التمرير */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* تحسينات الموبايل للأنيميشنز */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .campaign-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .step-card:hover {
        transform: translateY(-3px);
    }
}

/* Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-widget {
    height: 100%;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--success-color)
    );
    border-radius: 2px;
}

.footer-desc {
    color: #bdc3c7;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 77, 87, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
}

.footer-links a::before {
    content: "◀";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item div {
    color: #bdc3c7;
    line-height: 1.6;
}

.contact-item strong {
    color: #ecf0f1;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--success-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-payment {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-icon {
    font-size: 1.5rem;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    color: var(--success-color);
    transform: scale(1.2);
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }

    .footer-widget {
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-payment {
        justify-content: center;
        margin-top: 1rem;
        text-align: center;
    }

    .footer-payment span {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
        display: block;
    }

    .contact-item {
        justify-content: center;
        text-align: right;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a {
        padding-left: 0;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}
