@tailwind base;
@tailwind components;
@tailwind utilities;

/* ========================================
   MODERN DESIGN SYSTEM - ANIMATIONS
   ======================================== */

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fadeIn {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fadeOut {
    animation: fadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slideUp {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scaleIn {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   FORM ELEMENTS - MODERN STYLING
   ======================================== */
:root{
    --primary-color: #11889E;
    --light-primary-color: #0d6b7d;
}
.form-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-area-hover:hover {
    border-color: #11889E;
    background: linear-gradient(135deg, #f0fdff 0%, #e0f7fa 100%);
    box-shadow: 0 4px 20px rgba(17, 136, 158, 0.1);
    transform: translateY(-2px);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-fadeOut {
    animation: fadeOut 0.3s ease-in-out;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Step Progress Styles */
.step-circle {
    position: relative;
    overflow: hidden;
}

.step-circle.active {
    background: linear-gradient(135deg,rgb(22, 177, 204),rgb(15, 119, 138));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.step-circle.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.step-circle.current {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

.step-indicator {
    transition: all 0.3s ease-in-out;
}

.step-indicator.active {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.step-indicator.completed {
    border-color: #10b981;
    background-color: #d1fae5;
}

.step-indicator.current {
    border-color: #f59e0b;
    background-color: #fef3c7;
}

.step-label {
    transition: all 0.3s ease-in-out;
}

.form-steps .active {
    color: #1f2937;
    font-weight: 600;
}

.form-steps .completed {
    color: #059669;
}

.form-steps .current {
    color: #d97706;
    font-weight: 600;
}

.step-indicator .active{
    background: linear-gradient(135deg,rgb(22, 177, 204),rgb(15, 119, 138));
}
.step-indicator .completed{
    background: linear-gradient(135deg, #10b981, #059669);
}
.step-indicator .current{
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.step-description {
    transition: all 0.3s ease-in-out;
}

.step-description.active {
    color: #6b7280;
}

.step-description.completed {
    color: #10b981;
}

.step-description.current {
    color: #f59e0b;
}

.step-progress {
    transition: width 0.8s ease-in-out;
}

.step-check {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.6s ease-in-out forwards;
}

/* Form transitions */
.form-transition {
    transition: all 0.3s ease-in-out;
}

/* Upload area hover effects */
.upload-area-hover:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Step connector animation */
.step-connector {
    position: relative;
    overflow: hidden;
}

.step-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #11889E, #0d6b7d);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-connector.completed::before {
    transform: translateX(0);
}

/* ========================================
   CARD & BOX COMPONENTS - MODERN DESIGN
   ======================================== */

.box {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #eee;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    border-color: #11889E;
    box-shadow: 0 12px 40px rgba(17, 136, 158, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.service-card .service-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   BUTTONS - ENHANCED MODERN DESIGN
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #11889E 0%, #0d6b7d 100%);
    box-shadow: 0 4px 15px rgba(17, 136, 158, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(17, 136, 158, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   STATUS BADGES - MODERN STYLING
   ======================================== */

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* ========================================
   MOBILE MENU & RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 767px) {
    .sidebar-mobile {
        right: -100vw;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .sidebar-mobile.open {
        right: 0;
    }
    
    body.overflow-hidden {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .box {
        border-radius: 0.875rem;
    }
    
    .service-card {
        border-radius: 1rem;
    }
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-primary {
    background: rgba(17, 136, 158, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(17, 136, 158, 0.2);
}

/* ========================================
   GRADIENT TEXT EFFECTS
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #11889E 0%, #0d6b7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   HOVER GLOW EFFECTS
   ======================================== */

.hover-glow {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #11889E, #0d6b7d);
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover::after {
    opacity: 0.6;
}

/* ========================================
   SMOOTH SCROLLBAR STYLING
   ======================================== */

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #11889E 0%, #0d6b7d 100%);
    border-radius: 4px;
    transition: background 0.3s;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0d6b7d 0%, #11889E 100%);
}

/* ========================================
   ADDITIONAL UTILITY CLASSES
   ======================================== */

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-pattern {
    background-image: 
        linear-gradient(30deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(150deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(30deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0),
        linear-gradient(150deg, #f0f0f0 12%, transparent 12.5%, transparent 87%, #f0f0f0 87.5%, #f0f0f0);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}
.site-footer{
    background-color: var(--primary-color);
    color: #fff;
}

.site-footer{
    padding: 4rem 0;
}
.site-footer{
    color: #fff;
}
.site-footer a:hover{
    color: #fff8;
}
.footer-social-links svg{
    width: 20px;
    height: 20px;
}
.footer-social-links a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    padding: 8px;
}
.footer-social-links{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-menu{
    margin: 0;
}
.footer-links-column li svg{
    opacity: 0.7;
    width: 20px;
    margin-left: 4px;
}
#footer-menu li::before{
    content: '';
    background: #fff;
    transition: width 0.3s ease;
    float: right;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 12px 0 0 8px;
    opacity: 0.7;
}
#primary-menu{
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-branding img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.site-branding:hover img {
    transform: scale(1.05);
}

#primary-menu {
    align-items: center;
}

#primary-menu a {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

#primary-menu a:hover {
    color: var(--primary-color);
}

#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

#primary-menu a:hover::after {
    width: 100%;
}

#primary-menu .current-menu-item a {
    color: var(--primary-color);
}

#primary-menu .current-menu-item a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .button {
    white-space: nowrap;
}
#primary-menu li{
    position: relative;
}
#primary-menu .sub-menu{
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 1rem;
    z-index: 1000;
    width: 200px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

#primary-menu li:hover > .sub-menu{
    visibility: visible;
    opacity: 1;
}

#primary-menu .sub-menu a:after{
    display: none;
}

[name="national_code"]{
    direction: ltr;
    text-align: right;
}

.box{
    border: none;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
}
/* ========================================
   MODERN DESIGN IMPROVEMENTS SUMMARY
   ======================================== 
   
   ✨ Key Enhancements:
   
   1. Animations:
      - fadeIn, fadeOut, slideUp, scaleIn
      - Staggered animations for list items
      - Smooth cubic-bezier transitions
   
   2. Components:
      - Service cards with hover effects
      - Modern status badges
      - Gradient buttons with shadows
      - Enhanced form inputs with focus rings
   
   3. Visual Effects:
      - Glassmorphism for overlays
      - Gradient text effects
      - Hover glow animations
      - Custom scrollbar styling
   
   4. Color System:
      - Primary gradient: #11889E to #0d6b7d
      - Subtle background gradients
      - Consistent border colors
   
   5. Typography:
      - Improved font weights (semibold, bold)
      - Better spacing and line heights
      - Gradient text for highlights
   
   6. Interactive Elements:
      - Smooth hover transitions
      - Scale and transform effects
      - Enhanced shadow depth
      - Active state feedback
   
   ======================================== */
