@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #00b4d8;
    --primary-dark: #0077b6;
    --accent-cyan: #90e0ef;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(59, 130, 246, 0.3);
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-yellow: #f59e0b;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.glass-strong {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Shimmer Animation */
.shimmer-animation {
    position: relative;
    overflow: hidden;
}

.shimmer-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Slide-in Animation */
.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse Animation for Drop Zone */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(0, 180, 216, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
    }
}

.pulse-border {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Paste Active State */
.paste-active {
    transform: scale(0.98);
    border-color: #00b4d8 !important;
    background: rgba(0, 180, 216, 0.15) !important;
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 20px rgba(0, 180, 216, 0.1);
}

/* Enhanced Drop Zone */
#dropZone {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#dropZone::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: rotate 10s linear infinite;
}

#dropZone:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* File Type Tags */
.file-tag {
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

#dropZone:hover .file-tag {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Toast Notifications */
@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.toast-enter {
    animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00b4d8, #0077b6, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.glow-blue:hover {
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.5);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.4);
}

/* Data Cards */
.data-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Table Styling */
.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.data-table td {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: background 0.2s;
}

.data-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

/* Focus States */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #00b4d8;
    outline-offset: 3px;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00b4d8, #0077b6);
    border-radius: 5px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0077b6, #00b4d8);
}

/* Warning Banner */
.banned-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-right: 4px solid #ef4444;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 20px 0 rgba(239, 68, 68, 0.3); }
}

/* Success State */
.success-check {
    animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Tab Buttons */
.tab-btn {
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

/* File Preview */
.file-preview {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.file-preview:hover {
    transform: translateX(-5px);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass, .glass-strong {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}