/* Tailwind CSS Custom Styles */

/* Custom Colors */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #64748b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #06b6d4;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Transitions */
.sidebar-transition {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Avatar */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

/* Status Badges */
.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-disabled, .status-rejected {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-draft, .status-private {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* Stats Card Border */
.stats-card {
    border-left: 4px solid #6366f1;
}

.stats-card.success {
    border-left-color: #10b981;
}

.stats-card.warning {
    border-left-color: #f59e0b;
}

.stats-card.danger {
    border-left-color: #ef4444;
}

.stats-card.info {
    border-left-color: #06b6d4;
}

/* Note Card */
.note-card {
    border-left: 4px solid #6366f1;
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: #94a3b8;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dropdown Menu */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* Form Focus */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #6366f1;
}

/* Table Hover */
.table-row:hover {
    background-color: #f8fafc;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gradient-dark {
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.gradient-purple {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

/* Link Styles */
.link-hover {
    transition: color 0.2s ease;
}

.link-hover:hover {
    color: #6366f1;
}

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

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

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .sidebar-mobile {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%);
    }
    
    .sidebar-mobile.open {
        transform: translateX(0);
    }
}