/* Admin Dashboard Specific Styles */

/* Smooth transitions for modals */
#create-license-modal,
#license-details-modal {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Table hover effects */
#licenses-table-body tr {
    transition: all 0.2s ease;
}

/* Custom scrollbar for modals */
#create-license-modal > div,
#license-details-modal > div {
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
}

#create-license-modal > div::-webkit-scrollbar,
#license-details-modal > div::-webkit-scrollbar {
    width: 8px;
}

#create-license-modal > div::-webkit-scrollbar-track,
#license-details-modal > div::-webkit-scrollbar-track {
    background: transparent;
}

#create-license-modal > div::-webkit-scrollbar-thumb,
#license-details-modal > div::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 20px;
}

/* Icon animations */
.material-icons-round {
    transition: transform 0.2s ease;
}

button:hover .material-icons-round {
    transform: scale(1.1);
}

/* Stats card animations */
.bg-surface-light,
.bg-surface-dark {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-surface-light:hover,
.bg-surface-dark:hover {
    transform: translateY(-2px);
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Pulse animation for status indicators */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive table */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Success notification animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

/* Dark mode specific adjustments */
.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Card shadow effects */
.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 
                0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Button hover states */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Status indicator pulse */
.status-active::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

/* Empty state styling */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: #9ca3af;
}

.dark .empty-state {
    color: #6b7280;
}

/* Loading state */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.dark .loading-spinner {
    border-color: #374151;
    border-top-color: #10b981;
}

/* Action buttons in table */
.action-button {
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .action-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Code block styling */
code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Gradient backgrounds for stats cards */
.stat-card-gradient {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.dark .stat-card-gradient {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
}
