/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem; /* Changed from 50px to match other buttons */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Remove the ripple effect that was causing the transparent circle */
.btn:before {
    content: none !important; /* Disable the ripple effect */
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: none !important;
}

.btn:hover:before {
    width: auto !important;
    height: auto !important;
}

.btn:focus, .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(105, 51, 170, 0.3);
    color: white;
}

/* Green CTA button for hero section and features button */
.btn-success,
.hero .btn-primary,
.features-section + .text-center .btn-primary,
a[href="/features"].btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover, .btn-success:focus, .btn-success:active,
.hero .btn-primary:hover, .hero .btn-primary:focus, .hero .btn-primary:active,
.features-section + .text-center .btn-primary:hover,
.features-section + .text-center .btn-primary:focus,
.features-section + .text-center .btn-primary:active,
a[href="/features"].btn-primary:hover,
a[href="/features"].btn-primary:focus,
a[href="/features"].btn-primary:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    color: white !important;
}

/* Register button in navbar - green like "ابدأ الآن" */
.navbar-auth a[href="/register"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.navbar-auth a[href="/register"]:hover,
.navbar-auth a[href="/register"]:focus,
.navbar-auth a[href="/register"]:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    color: white !important;
}

/* Login button - white background with purple text */
.navbar-auth a[href="/login"],
a[href="/login"].btn-primary {
    background: white !important;
    border-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
}

.navbar-auth a[href="/login"]:hover,
.navbar-auth a[href="/login"]:focus,
.navbar-auth a[href="/login"]:active,
a[href="/login"].btn-primary:hover,
a[href="/login"].btn-primary:focus,
a[href="/login"].btn-primary:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(69, 36, 110, 0.4) !important;
    color: white !important;
}

.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) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: white !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.bounce {
    animation: bounce 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Extra Styles */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.rounded-custom {
    border-radius: 12px;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Text */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Card Overrides */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-with-border {
    border: 2px solid var(--gray-400) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.card-with-border .card-header {
    border-bottom: 2px solid var(--gray-400) !important;
    background-color: var(--gray-100) !important;
}

.card-with-border:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-400);
}

/* Custom Utilities */
.opacity-90 {
    opacity: 0.9;
}

.opacity-75 {
    opacity: 0.75;
}