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

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

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

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

/* Custom Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom gradient backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom form styling */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: #3498db;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-text-small {
        font-size: 0.875rem;
    }
    
    .mobile-padding {
        padding: 1rem;
    }
    
    .mobile-margin {
        margin: 0.5rem 0;
    }
    
    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ensure all content fits within viewport */
    .max-w-7xl {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile menu styles */
    .mobile-menu {
        transition: all 0.3s ease-in-out;
    }
    
    .mobile-menu.hidden {
        display: none;
    }
    
    /* Adjust text sizes for mobile */
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-4xl {
        font-size: 1.75rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Adjust grid layouts for mobile */
    .grid {
        grid-template-columns: 1fr;
    }
    
    .md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Dashboard specific styles */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

/* Drag and drop styles */
.drag-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.drag-zone.drag-over {
    border-color: #3498db;
    background-color: #eff6ff;
}

.drag-item {
    cursor: move;
    user-select: none;
}

.drag-item:hover {
    transform: scale(1.02);
}

/* Status indicators */
.status-active {
    background-color: #10b981;
}

.status-pending {
    background-color: #f59e0b;
}

.status-inactive {
    background-color: #ef4444;
}

/* Professional color palette overrides */
:root {
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    --color-accent: #0f172a;
    --color-warm: #e8d5b7;
    --color-light: #f8f9fa;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
}

/* Form validation styles */
.form-error {
    border-color: var(--color-danger) !important;
}

.error-message {
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Table styles for dashboard */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--color-primary);
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Dark Footer */
.footer-dark {
    background-color: #1a252f !important;
} 