/* Custom CSS for Tailwind Extensions */
/* IT Company Management System */

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

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
    }
}

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

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card Styles */
.card {
    @apply bg-white rounded-xl shadow-lg p-6 transition-all duration-300;
}

.card-dark {
    @apply bg-gray-800 rounded-xl shadow-lg p-6 transition-all duration-300;
}

/* Button Enhancements */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #2563EB 100%);
}

/* Toast Notification */
.toast {
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Form Input Focus */
.input-focus:focus {
    @apply ring-2 ring-purple-500 border-purple-500;
}

/* Sidebar Active Link */
.sidebar-link-active {
    @apply bg-gradient-to-r from-purple-600 to-blue-600 text-white;
}

/* Badge Pulse */
.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Kanban Board */
.kanban-column {
    @apply bg-gray-100 rounded-lg p-4 min-h-[500px];
}

.kanban-card {
    @apply bg-white rounded-lg p-4 mb-3 shadow hover:shadow-lg transition-shadow cursor-move;
}

/* Stats Card */
.stats-card {
    @apply bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-all duration-300 border-l-4;
}

/* Table Hover */
.table-row-hover:hover {
    @apply bg-gray-50 transition-colors duration-200;
}

/* Modal Backdrop */
.modal-backdrop {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
    animation: fadeIn 0.2s ease-in-out;
}

/* Dropdown Menu */
.dropdown-menu {
    @apply absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-xl py-2 z-50;
    animation: fadeIn 0.2s ease-in-out;
}
