/* Eduyes - Estilos personalizados inspirados en Aulicum */

/* Variables CSS para colores y espaciado */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #6366F1;
    --accent-color: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --sidebar-width: 256px;
    --header-height: 72px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

/* Sidebar Styles - Dark Theme like Admindek */
#sidebar {
    width: 265px;
    background-color: #1F2937;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15), 2px 0 8px rgba(0, 0, 0, 0.1);
}

#sidebar .logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

#sidebar h1 {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#sidebar nav {
    padding: 0;
}

/* Sidebar Menu Items */
.sidebar-menu-item {
    color: #9CA3AF;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.sidebar-menu-item.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #FFFFFF;
    font-weight: 600;
}

.sidebar-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 0 3px 3px 0;
}

.sidebar-menu-item i {
    color: inherit;
    font-size: 1rem;
}

.sidebar-menu-item.active i {
    color: #60A5FA;
}

/* Section Headers */
#sidebar nav > div > div:first-child {
    margin-top: 0.5rem;
}

/* Badge HOT */
.badge-hot {
    background-color: rgba(251, 146, 60, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
}

/* Scrollbar for dark sidebar - Only visible on hover */
#sidebar,
#sidebar > div {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

#sidebar:hover,
#sidebar:hover > div {
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(0, 0, 0, 0.2);
}

#sidebar::-webkit-scrollbar,
#sidebar > div::-webkit-scrollbar {
    width: 3px;
    background: transparent;
}

#sidebar::-webkit-scrollbar-track,
#sidebar > div::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#sidebar:hover::-webkit-scrollbar-track,
#sidebar:hover > div::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#sidebar::-webkit-scrollbar-thumb,
#sidebar > div::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#sidebar:hover::-webkit-scrollbar-thumb,
#sidebar:hover > div::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
}

#sidebar:hover::-webkit-scrollbar-thumb:hover,
#sidebar:hover > div::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#sidebar:hover::-webkit-scrollbar-thumb:active,
#sidebar:hover > div::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.65);
}

/* Header Styles */
header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
}

header input[type="text"] {
    transition: all 0.2s ease;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
}

header input[type="text"]:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Profile Dropdown */
#profile-dropdown {
    animation: fadeInDown 0.2s ease;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#profile-dropdown a {
    transition: all 0.15s ease;
}

#profile-dropdown a:hover {
    padding-left: 1.25rem;
}

/* Cards Styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.8;
}

.stats-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stats-card:hover .stats-card-icon {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Activity Items */
.activity-item {
    transition: all 0.2s ease;
    background-color: var(--gray-50);
}

.activity-item:hover {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Quick Actions */
.quick-action {
    transition: all 0.2s ease;
}

.quick-action:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Page Title */
.page-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--gray-900);
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* Overlay */
#sidebar-overlay {
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* Scrollbar Styles - General (for main content) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    #sidebar {
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: slideIn 0.3s ease;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #DC2626 100%);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Tab Styles */
.tab-button {
    transition: all 0.2s ease;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
