/* Custom Styles for Glassmorphism Printing House Website */

html.rtl,
body.rtl,
body.lang-ar {
    direction: rtl;
}

html.ltr,
body.ltr,
body.lang-en {
    direction: ltr;
}

body.lang-ar {
    text-align: right;
}

body.lang-en {
    text-align: left;
}

body.lang-en .rtl-only {
    display: none !important;
}

body.lang-ar .ltr-only {
    display: none !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

/* CSS Variables for Theme Colors */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --brand-gold: #D4AF37;
    --brand-red: #C0352B;
    --noise-opacity: 0.1;
}

.dark {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --noise-opacity: 0.05;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.dark .glass-effect:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Glass Button Variants */
.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Navigation Styles */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dark #navbar {
    background: rgba(11, 11, 12, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.nav-controls {
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: flex-end;
}

.nav-controls > * {
    flex-shrink: 0;
}

.nav-controls .login-btn {
    white-space: nowrap;
}

.navbar-logo img {
    max-width: clamp(120px, 45vw, 200px);
    height: auto;
    display: block;
}

@media (max-width: 640px) {
    .nav-controls {
        gap: 0.5rem;
    }

    .nav-controls button,
    .nav-controls .login-btn {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        padding: 0.5rem;
    }

    .nav-controls .login-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-controls button,
    .nav-controls .login-btn {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        padding: 0.4rem;
    }

    .navbar-logo img {
        max-width: clamp(110px, 55vw, 160px);
    }
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark #navbar.scrolled {
    background: rgba(11, 11, 12, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    #desktopNavLinks {
        display: flex !important;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-gold), #E5C766);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary {
    padding: 2rem 2rem;
    border-radius: 1rem;
    font-weight: bold;
    color: black;
    background: linear-gradient(135deg, #E5C766 0%, #D4AF37 100%);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline {
    padding: 2rem 2rem;
    border-radius: 1rem;
    font-weight: bold;
    color: #374151;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark .btn-outline {
    color: white;
}

.btn-outline:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

.btn-sm-primary {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: black;
    background: linear-gradient(135deg, #E5C766 0%, #D4AF37 100%);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm-primary:hover {
    transform: scale(1.05);
}

/* Filter Button Styles */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 500;
    color: #374151;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark .filter-btn {
    color: #d1d5db;
    background: rgba(128, 128, 128, 0.2);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #D4AF37;
}

.filter-btn.active {
    background: #D4AF37;
    color: black;
    border-color: #D4AF37;
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 4rem;
    height: 4rem;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: pulse-glow 2s infinite;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #16a34a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Call Button */
.call-btn {
    width: 4rem;
    height: 4rem;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
}

.call-btn:hover {
    background: #d97706;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
}

.dark .social-link {
    color: #d1d5db;
}

.social-link:hover {
    color: white;
    background: #D4AF37;
    transform: scale(1.1);
}

.footer-link {
    color: #6b7280;
    transition: color 0.3s ease;
    text-decoration: none;
}

.dark .footer-link {
    color: #d1d5db;
}

.footer-link:hover {
    color: #D4AF37;
}

/* Animation Keyframes */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floaty-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-15px, 15px) scale(0.9);
    }
    75% {
        transform: translate(15px, 10px) scale(1.05);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.7);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Apply Animations */
.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
}

.animate-floaty-blob {
    animation: floaty-blob 6s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Particle.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E5C766;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-effect {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .whatsapp-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .glass-effect {
        background: white !important;
        backdrop-filter: none !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }
    
    .btn-primary, .btn-outline {
        background: var(--brand-gold) !important;
        color: black !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-gradient-shift,
    .animate-floaty-blob,
    .animate-glow-pulse {
        animation: none;
    }
    
    .glass-effect:hover,
    .btn-primary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* Focus States for Better Accessibility */
.glass-btn:focus,
.btn-primary:focus,
.btn-outline:focus,
.nav-link:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--brand-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 2px solid #000 !important;
    }
    
    .dark .glass-effect {
        background: rgba(0, 0, 0, 0.9) !important;
        border: 2px solid #fff !important;
    }
}

/* Text Selection */
::selection {
    background: var(--brand-gold);
    color: black;
}

::-moz-selection {
    background: var(--brand-gold);
    color: black;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Arabic/RTL specific adjustments */
[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .animate-floaty-blob {
    animation-direction: reverse;
}

/* Fonts are loaded via Google Fonts CDN in HTML head */

/* New Hero Animations */
@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes expand-width {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes floating-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes floating-medium {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* New Animation Classes */
.floating-element {
    animation: float-gentle 6s ease-in-out infinite;
}

.floating-slow {
    animation: floating-slow 4s ease-in-out infinite;
}

.floating-medium {
    animation: floating-medium 3s ease-in-out infinite;
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 3s ease infinite;
}

.animate-expand-width {
    animation: expand-width 2s ease-out forwards;
    animation-delay: 1s;
}

/* Gallery Specific Styles */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

.gallery-item {
    break-inside: avoid;
    page-break-inside: avoid;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05) rotate(0.5deg);
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.lb-data .lb-number {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* Gallery Filter Animation */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Gallery Item Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item[data-aos] {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom Scrollbar for Gallery */
.gallery-container::-webkit-scrollbar {
    width: 6px;
}

.gallery-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 3px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: #E5C766;
}

/* Gallery Search Input */
.gallery-search {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.gallery-search:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.gallery-search::placeholder {
    color: var(--text-secondary);
}

/* Gallery Statistics Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-gold), #E5C766);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* Gallery Category Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-gold);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

/* Gallery Item Overlay Effects */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(212, 175, 55, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Cart and Services Styles */
.filter-btn {
    @apply px-6 py-3 rounded-2xl font-medium text-gray-700 dark:text-gray-300 bg-white/20 dark:bg-gray-800/20 border border-white/30 hover:bg-white/30 hover:border-brand-gold transition-all duration-300;
}

.filter-btn.active {
    @apply bg-brand-gold text-black border-brand-gold;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Cart Sidebar Animations - Compact floating design */
#cartSidebar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.3s ease;
}

#cartSidebar .glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Adjust main content when cart is visible - desktop only */
@media (min-width: 1024px) {
    .cart-visible .container {
        max-width: calc(100% - 350px);
        margin-right: 350px;
        transition: all 0.5s ease;
    }
}

@media (max-width: 768px) {
    #cartSidebar {
        width: 320px;
        max-height: 80vh;
        right: 16px;
    }
}

/* Order Modal Enhancements */
#orderModal .glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark #orderModal .glass-effect {
    background: rgba(17, 24, 39, 0.95);
}

/* Cart Item Animations */
.cart-item-enter {
    opacity: 0;
    transform: translateY(-20px);
    animation: cartItemEnter 0.3s ease forwards;
}

@keyframes cartItemEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-exit {
    animation: cartItemExit 0.3s ease forwards;
}

@keyframes cartItemExit {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Service Card Hover Effects */
.service-card:hover {
    transform: translateY(-5px);
}

.service-card .add-to-cart {
    transition: all 0.3s ease;
}

.service-card .add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Notification Styles */
.notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Field Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Client Cards Animation Enhancement */
.client-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.client-card .view-works-btn {
    transition: all 0.3s ease;
}

.client-card:hover .view-works-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Modal Styles */
#clientWorksModal {
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#clientWorksModal .glass-effect {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#clientWorksModal .glass-effect::-webkit-scrollbar {
    width: 8px;
}

#clientWorksModal .glass-effect::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#clientWorksModal .glass-effect::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 4px;
}

#clientWorksModal .glass-effect::-webkit-scrollbar-thumb:hover {
    background: #E5C766;
}

/* Client Badge Animation */
.client-card .absolute {
    transition: all 0.3s ease;
}

.client-card:hover .absolute {
    transform: scale(1.1);
}

/* Client Icon Animation */
.client-card .w-20.h-20 {
    transition: all 0.3s ease;
}

.client-card:hover .w-20.h-20 {
    transform: scale(1.1) rotate(5deg);
}

/* Coupons Admin Styles */
.admin-stats-card {
    position: relative;
    overflow: hidden;
}

.admin-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.admin-stats-card:hover::before {
    transform: translateX(100%);
}

.admin-stats-icon {
    transition: all 0.3s ease;
}

.admin-stats-card:hover .admin-stats-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive Table Improvements */
.admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 800px;
}

/* Mobile Cards Enhancements */
@media (max-width: 1024px) {
    .admin-table-container {
        display: none;
    }
}

@media (min-width: 1025px) {
    .lg\\:hidden {
        display: none !important;
    }
}

/* Modal Enhancements */
.fixed.inset-0 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Toggle Switch Improvements */
.peer:checked + div {
    background-color: #3b82f6;
}

.peer:checked + div:after {
    transform: translateX(100%);
    border-color: white;
}

/* Mobile Filter Form */
@media (max-width: 640px) {
    .admin-form-group {
        margin-bottom: 1rem;
    }
    
    .admin-form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Coupon Code Badge Animation */
.inline-flex.items-center.px-3.py-1.rounded-full {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inline-flex.items-center.px-3.py-1.rounded-full:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Coupon Progress Bar Animation */
.bg-blue-600.h-2.rounded-full, .bg-blue-600.h-1\\.5.rounded-full {
    position: relative;
    overflow: hidden;
}

.bg-blue-600.h-2.rounded-full::after, .bg-blue-600.h-1\\.5.rounded-full::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Toggle Button Enhanced */
.admin-toggle-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.admin-toggle-btn.inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.admin-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Form Input Focus Effects */
.admin-form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Discount Value Display */
.text-3xl.font-bold.text-green-800 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.text-3xl.font-bold.text-green-800::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Status Cards Hover Effects */
.text-center.p-4.bg-gray-50.rounded-lg {
    transition: all 0.3s ease;
    cursor: default;
}

.text-center.p-4.bg-gray-50.rounded-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

/* Action Buttons Group */
.admin-action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.admin-action-btn {
    transition: all 0.2s ease;
    transform: scale(1);
}

.admin-action-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Coupon Table Row Hover */
.admin-table tbody tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    transform: translateX(5px);
}

/* Mobile Card Hover Effects */
.bg-white.rounded-xl.border.border-gray-200 {
    transition: all 0.3s ease;
}

.bg-white.rounded-xl.border.border-gray-200:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

/* Empty State Animation */
.admin-empty-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Notification Animations */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.notification-exit {
    transform: translateX(0);
    opacity: 1;
}

.notification-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Quick Create Modal Specific Styles */
.quick-create-modal .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: end;
}

.quick-create-modal .discount-input-group {
    position: relative;
}

.quick-create-modal .discount-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
}

.quick-create-modal .form-input[name="discount_value"] {
    padding-right: 35px;
}

/* Enhanced Button Styles */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Enhancement */
.modal-overlay {
    animation: modal-fade-in 0.3s ease-out;
}

.modal-content {
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Enhancement */
.form-floating-label {
    position: relative;
}

.form-floating-label input:focus + label,
.form-floating-label input:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.8);
    color: #3b82f6;
}

.form-floating-label label {
    position: absolute;
    left: 12px;
    top: 10px;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6b7280;
}

/* Status Indicator Animation */
.status-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsive Enhancements */
@media (max-width: 640px) {
    .quick-create-modal .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .mobile-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-card-actions .btn {
        width: 100%;
    }
}

/* Table Loading State */
.table-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: table-spin 1s linear infinite;
}

@keyframes table-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}