/* Admin Dashboard styles */

/* Sidebar styles */
.sidebar {
    width: 16rem;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: white;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-mobile-open {
    transform: translateX(0);
}

.sidebar-mobile-closed {
    transform: translateX(-100%);
}

.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item.active {
    background-color: var(--primary-600);
    color: white;
}

.sidebar-item:hover:not(.active) {
    background-color: var(--neutral-100);
}

/* Top navbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--primary-600);
    color: white;
}

/* Dashboard cards */
.stat-card {
    transition: all 0.3s ease-in-out;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card.open {
    border-top: 4px solid var(--success-500);
}

.stat-card.closed {
    border-top: 4px solid var(--neutral-500);
}

.stat-card.canceled {
    border-top: 4px solid var(--danger-500);
}

.stat-card.soon {
    border-top: 4px solid var(--warning-500);
}

.stat-card.users {
    border-top: 4px solid var(--primary-500);
}

/* Animated gradient background for status summary */
.gradient-background {
    background: linear-gradient(-45deg, #4338ca, #3b82f6, #0ea5e9, #06b6d4);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Quick action buttons */
.quick-action {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-action:hover {
    transform: translateY(-3px);
}

.quick-action-icon {
    transition: all 0.2s ease;
}

.quick-action:hover .quick-action-icon {
    transform: scale(1.1);
}

/* Recent activity */
.activity-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.activity-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.5rem;
    bottom: 0;
    width: 2px;
    background-color: var(--neutral-200);
}

.activity-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-200);
    border: 2px solid white;
    z-index: 1;
}

/* Edital list */
.edital-row {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.edital-row:hover {
    background-color: var(--neutral-50);
}

.edital-row.aberto {
    border-left-color: var(--success-500);
}

.edital-row.fechado {
    border-left-color: var(--neutral-500);
}

.edital-row.cancelado {
    border-left-color: var(--danger-500);
}

/* User table styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background-color: var(--neutral-50);
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--neutral-200);
}

.user-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.user-table tr:hover {
    background-color: var(--neutral-50);
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Form styles */
.form-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--neutral-500);
}

.form-input-icon + input {
    padding-left: 2.5rem;
}

/* Notifications */
.notification-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--danger-500);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}