/* assets/css/index.css */
:root {
    --primary-color: #FF69B4;
    --primary-light: #FFB6D9;
    --primary-dark: #FF1493;
    --secondary-color: #FFC0CB;
    --accent-color: #FF85C0;
    --bg-gradient-start: #FFF0F5;
    --bg-gradient-end: #FFE4E9;
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(255, 105, 180, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 105, 180, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 105, 180, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite reverse;
}

.loading-container {
    text-align: center;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
    max-width: 500px;
    width: 90%;
}

.loading-content {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.logo-icon {
    width: 60px;
    height: 60px;
    color: var(--white);
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.loading-animation {
    margin: 2rem 0;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-gradient-start);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
    width: 0%;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--bg-gradient-start);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }
.feature-item:nth-child(4) { animation-delay: 0.5s; }

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.loading-footer {
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 1s both;
}

.loading-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes loading {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 70%;
        background-position: 100% 50%;
    }
    100% {
        width: 100%;
        background-position: 0% 50%;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(10deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 2rem 1.5rem;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }

    .features-preview {
        grid-template-columns: 1fr;
    }
}