:root {
    /* Caja de Abogados Color Palette - Bright Blue & Red */
    --primary-gradient: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    --secondary-gradient: linear-gradient(135deg, #C1272D 0%, #9B1F24 100%);
    --accent-gradient: linear-gradient(135deg, #0088CC 0%, #0099DD 100%);

    --primary-color: #0077BE;
    --primary-dark: #005A94;
    --secondary-color: #C1272D;
    --accent-color: #0088CC;

    --danger-color: #C1272D;
    --warning-color: #f59e0b;
    --success-color: #10b981;

    --success-gradient: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);

    --background-color: #f7f9fc;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    --text-color: #2d3748;
    --text-light: #718096;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar - Professional Style */
.navbar {
    background: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.navbar-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navbar-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}

.navbar-nav a:hover::before {
    transform: translateX(0);
}

.navbar-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards - Premium Design */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Headers */
h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Forms - Modern & Clean */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 119, 190, 0.1);
    transform: translateY(-2px);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons - Premium Gradient */
button,
.button {
    background: var(--primary-gradient);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

button::before,
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

button:hover::before,
.button:hover::before {
    left: 100%;
}

button:hover,
.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

button:active,
.button:active {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Task List - Enhanced */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.task-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.task-item:last-child {
    border-bottom: none;
}

.task-info {
    flex: 1;
}

.task-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-info p {
    margin: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.task-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.task-date {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 119, 190, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    min-width: 140px;
}

/* Priority Badges - Vibrant */
.priority-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.priority-badge:hover {
    transform: scale(1.05);
}

.priority-normal {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
}

.priority-media {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.priority-urgente {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Due Today Highlight - More Prominent */
.due-today {
    border-left: 5px solid var(--danger-color);
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(193, 39, 45, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.due-today:hover {
    box-shadow: 0 8px 20px rgba(193, 39, 45, 0.3);
}

.due-today .task-date {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
    font-weight: 800;
}

/* Alerts - Enhanced */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left-color: #dc2626;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left-color: #10b981;
}

/* Login Page - Premium Design */
.login-container {
    max-width: 450px;
    margin: 5rem auto;
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-container .card {
    box-shadow: var(--shadow-xl);
    padding: 3rem;
}

.login-container h2 {
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in;
}

/* Filters Section */
.filters {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.filters form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
}

/* Tables - Modern Design */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--primary-gradient);
    color: white;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

tbody tr {
    background: white;
    transition: var(--transition);
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: linear-gradient(135deg, #e1f2fb 0%, #d0e9f7 100%);
    transform: scale(1.01);
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background-color: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.calendar-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.75rem;
    transition: var(--transition);
}

.calendar-day:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.02);
}

.calendar-task {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.4rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.calendar-task:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.calendar-task.priority-urgente {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.calendar-task.priority-media {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .task-date {
        min-width: auto;
        width: 100%;
        text-align: left;
    }

    h1 {
        font-size: 2rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .filters form {
        flex-direction: column;
        align-items: stretch;
    }
}

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

.loading {
    border: 3px solid rgba(0, 119, 190, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Time Preset Buttons */
.time-preset-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-color);
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
}

.time-preset-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.time-preset-btn::before {
    display: none;
}/* ============================================
   SIDEBAR NAVIGATION STYLES
   ============================================ */

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #0077BE 0%, #005A94 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

/* Sidebar Header - Improved Design */
.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 80px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand .brand-icon i {
    font-size: 1.3rem;
    color: white;
}

.sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar-brand .brand-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-brand .brand-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1002;
}

/* Toggle Button */
.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-toggle:hover {
    transform: translateX(-50%) scale(1.05);
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Navigation Links */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-link span {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
}

/* Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.25rem;
}

.sidebar.collapsed .nav-divider {
    margin: 0.75rem 0.5rem;
}

/* User Section at Bottom */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-details {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.user-details .user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-details .user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-info {
    padding: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Notification Status */
.notification-status {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
}

.notification-status:hover {
    background: rgba(255, 255, 255, 0.1);
}


.notification-status i:first-child {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .notification-status .notification-text {
    display: none;
}

.sidebar.collapsed .notification-status {
    justify-content: center;
    padding: 0.5rem 0;
}

/* Logout Link in Footer */
.logout-link {
    color: #fca5a5 !important;
    margin-top: 0.25rem;
    padding: 0.6rem 0.5rem !important;
    border-left: none !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
}

.sidebar.collapsed .logout-link {
    justify-content: center;
    padding: 0.6rem 0 !important;
}

.sidebar.collapsed .logout-link span {
    display: none;
}

/* Tooltip for collapsed state */
.nav-link[data-tooltip] {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 10px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed .nav-link::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: -2px;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed~.main-wrapper {
    margin-left: 70px;
}

/* Adjust container for sidebar layout */
.main-wrapper .container {
    max-width: 1400px;
    padding: 1.5rem 2rem;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px !important;
    }

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

    .main-wrapper {
        margin-left: 0 !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Mobile menu button (hidden by default on desktop) */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 992px) {
    .sidebar-overlay.active {
        display: block;
    }
}/* Custom Button Styles */
.button-secondary {
    background: white;
    color: #0077BE;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-secondary:hover {
    border-color: #0077BE;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    background: #f8fafc;
    color: #005A94;
}/* Tags System Styles */

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.tag-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tag-chip i {
    font-size: 0.7rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Process Tag - Link to process */
.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: color-mix(in srgb, var(--process-color, #6366f1) 15%, white);
    color: var(--process-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--process-color, #6366f1) 30%, white);
    transition: all 0.2s ease;
}

.process-tag:hover {
    background: color-mix(in srgb, var(--process-color, #6366f1) 25%, white);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.process-tag i {
    font-size: 0.7rem;
}

/* Area Tag */
.area-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--area-color, #2563eb) 15%, white);
    color: var(--area-color, #2563eb);
    border: 1px solid color-mix(in srgb, var(--area-color, #2563eb) 30%, white);
}

/* Tag Pill (for task tags) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--tag-color, #64748b) 15%, white);
    color: var(--tag-color, #64748b);
}

/* Tag Selector (Multi-select dropdown) */
.tag-selector {
    position: relative;
}

.tag-selector-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tag-selector-input:hover {
    border-color: var(--primary-color);
}

.tag-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.tag-selector-dropdown.active {
    display: block;
}

.tag-option {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tag-option:hover {
    background: #f3f4f6;
}

.tag-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.tag-option-preview {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Selected tags display */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 32px;
    align-items: center;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.selected-tag .remove-tag {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.selected-tag .remove-tag:hover {
    opacity: 1;
}

/* Todoist-inspired minimal styles */
.tag-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tag-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Tag badge (small version for tight spaces) */
.tag-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.25rem;
}/**
 * User Selector Component Styles
 * Modern user selection with avatars, search, and chips
 * Colors aligned with Caja de Abogados palette (Blue #0077BE)
 */

/* Container for selected user chips */
.user-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.user-chips-container .no-selection {
    color: #9ca3af;
    font-style: italic;
}

/* User chip (pill) for selected users */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    background: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: chipAppear 0.2s ease-out;
}

@keyframes chipAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-chip .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.7rem;
}

.user-chip .remove-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Search input for filtering users */
.user-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 18px;
}

.user-search-input:focus {
    outline: none;
    border-color: #0077BE;
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.15);
}

.user-search-input::placeholder {
    color: #9ca3af;
}

/* Grid container for user cards */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    margin-top: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.users-grid::-webkit-scrollbar {
    width: 8px;
}

.users-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.users-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

/* Individual user card */
.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.user-card:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
    transform: translateY(-2px);
}

/* Hide the actual checkbox */
.user-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selected state */
.user-card:has(input:checked) {
    border-color: #0077BE;
    background: linear-gradient(135deg, #e1f2fb 0%, #cfe8f5 100%);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.2);
}

/* Fallback for browsers without :has() support */
.user-card.selected {
    border-color: #0077BE;
    background: linear-gradient(135deg, #e1f2fb 0%, #cfe8f5 100%);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.2);
}

/* User avatar with initials */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Avatar color variations - using app-consistent colors */
.user-avatar[data-color="1"] {
    background: linear-gradient(135deg, #0077BE, #005A94);
}

.user-avatar[data-color="2"] {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.user-avatar[data-color="3"] {
    background: linear-gradient(135deg, #10b981, #059669);
}

.user-avatar[data-color="4"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.user-avatar[data-color="5"] {
    background: linear-gradient(135deg, #C1272D, #9B1F24);
}

.user-avatar[data-color="6"] {
    background: linear-gradient(135deg, #0088CC, #0077BE);
}

.user-avatar[data-color="7"] {
    background: linear-gradient(135deg, #0369a1, #075985);
}

.user-avatar[data-color="0"] {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* User name label */
.user-card .user-name {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Check overlay icon */
.user-card .check-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: #0077BE;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.user-card:has(input:checked) .check-overlay {
    display: flex;
    animation: checkAppear 0.2s ease-out;
}

/* Fallback for :has() */
.user-card.selected .check-overlay {
    display: flex;
    animation: checkAppear 0.2s ease-out;
}

@keyframes checkAppear {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Hidden state for filtered out cards */
.user-card.hidden {
    display: none;
}

/* Validation error state */
.users-grid.error {
    border-color: #C1272D;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .user-card {
        padding: 0.5rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .user-card .user-name {
        font-size: 0.75rem;
    }
}

/* Mini buttons for Select All / None */
.mini-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.25rem;
}

.mini-btn:hover {
    background: #0077BE;
    color: white;
    border-color: #0077BE;
}

.mini-btn:active {
    transform: scale(0.95);
}

.mini-btn::before {
    display: none;
}/* Calendar Widget - Dark Mode Style */
.calendar-widget {
    background: linear-gradient(180deg, #1a2234 0%, #151c2c 100%);
    border-radius: 16px;
    padding: 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 350px;
}

/* Header with date and navigation */
.calendar-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-widget-date {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.calendar-widget-month-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-widget-month {
    font-weight: 700;
    font-size: 1rem;
    color: #f1f5f9;
    min-width: 140px;
    text-align: center;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    transform: scale(1.05);
}

/* Days grid */
.calendar-widget-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-widget-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-widget-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #cbd5e1;
    font-weight: 500;
    gap: 2px;
}

.calendar-widget-day:hover:not(.other-month):not(.today) {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* Other month days (grayed out) */
.calendar-widget-day.other-month {
    color: #475569;
    cursor: default;
}

/* Today highlight */
.calendar-widget-day.today {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.calendar-widget-day.today:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

/* Selected day */
.calendar-widget-day.selected:not(.today) {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

/* Event indicator dot */
.calendar-widget-day .event-dot {
    width: 4px;
    height: 4px;
    background: #0ea5e9;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.calendar-widget-day.today .event-dot {
    background: white;
}

/* Weekend styling */
.calendar-widget-day.weekend:not(.today):not(.selected) {
    color: #94a3b8;
}

/* Filter range styling */
.calendar-widget-day.in-filter-range:not(.today) {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.calendar-widget-day.filter-start:not(.today),
.calendar-widget-day.filter-end:not(.today) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.calendar-widget-day.filter-start.filter-end:not(.today) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Calendar legend */
.calendar-widget-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-dot.today {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.legend-dot.filter-range {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.legend-dot.has-event {
    background: #1a2234;
    position: relative;
}

.legend-dot.has-event::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0ea5e9;
    border-radius: 50%;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}

/* Calendar widget expand on mobile */
@media (max-width: 768px) {
    .calendar-widget {
        max-width: 100%;
    }
}

/* Animation for month transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-widget-grid {
    animation: fadeIn 0.2s ease-out;
}/* Notification Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #92400e;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

.notification-task-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.notification-task-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #0077BE;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-task-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-left-width: 6px;
}

.notification-task-item:active {
    transform: translateX(4px);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.notification-task-item.priority-urgente {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.notification-task-item.priority-media {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Overdue items - Red urgent style */
.notification-task-item.overdue-item {
    border-left-color: #dc2626;
    border-left-width: 6px;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    }

    50% {
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
    }
}

.notification-task-item.overdue-item:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.task-icon {
    font-size: 1.5rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
}

.task-info {
    flex: 1;
}

.task-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.task-info p {
    margin: 0.25rem 0;
    color: #718096;
    font-size: 0.9rem;
}

.task-desc {
    font-style: italic;
    opacity: 0.8;
}

.task-priority {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.notification-task-item.priority-urgente .task-priority {
    background: #dc2626;
    color: white;
}

.notification-task-item.priority-media .task-priority {
    background: #f59e0b;
    color: white;
}

.notification-task-item.priority-normal .task-priority {
    background: #64748b;
    color: white;
}

/* Notification Toggle Button */
.notification-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.notification-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.notification-toggle.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: white;
    animation: bellRing 2s infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}


/* Postpone Button & Menu Styles */
.postpone-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.postpone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.postpone-btn i {
    font-size: 0.75rem;
}

.postpone-menu {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 10001;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.postpone-menu-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.postpone-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    font-weight: 500;
}

.postpone-option:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #7c3aed;
}

.postpone-option i {
    width: 20px;
    text-align: center;
    color: #8b5cf6;
}

.postpone-option.custom-date {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.postpone-custom-input {
    display: none;
    padding: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.postpone-custom-input.show {
    display: block;
}

.postpone-custom-input input[type="date"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.postpone-custom-input input[type="date"]:focus {
    outline: none;
    border-color: #8b5cf6;
}

.postpone-custom-input .confirm-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.postpone-custom-input .confirm-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Task item positioning for postpone menu */
.notification-task-item {
    position: relative;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}/* ===========================================
   Reports Section - Premium Styles
   =========================================== */

/* --- KPI Cards Grid --- */
.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .reports-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reports-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.kpi-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: kpiFadeIn 0.5s ease-out backwards;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-card:nth-child(1) {
    animation-delay: 0.05s;
}

.kpi-card:nth-child(2) {
    animation-delay: 0.10s;
}

.kpi-card:nth-child(3) {
    animation-delay: 0.15s;
}

.kpi-card:nth-child(4) {
    animation-delay: 0.20s;
}

.kpi-card:nth-child(5) {
    animation-delay: 0.25s;
}

.kpi-card:nth-child(6) {
    animation-delay: 0.30s;
}

.kpi-card:nth-child(7) {
    animation-delay: 0.35s;
}

.kpi-card:nth-child(8) {
    animation-delay: 0.40s;
}

@keyframes kpiFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--kpi-accent, var(--primary-gradient));
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--kpi-accent-color, var(--primary-color));
}

/* Override generic .card styles leaking into kpi-card */
.kpi-card.kpi-card {
    margin-bottom: 0;
    padding: 1.25rem 1rem;
    border-radius: 14px;
}

.kpi-card .kpi-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--kpi-accent-color, var(--primary-color));
    opacity: 0.9;
    line-height: 1;
}

.kpi-card .kpi-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--kpi-accent-color, var(--primary-color));
    line-height: 1;
    margin: 0;
    letter-spacing: -0.5px;
}

/* KPI Color variants */
.kpi-card.kpi-total {
    --kpi-accent: var(--primary-gradient);
    --kpi-accent-color: var(--primary-color);
}

.kpi-card.kpi-completed {
    --kpi-accent: linear-gradient(135deg, #10b981, #059669);
    --kpi-accent-color: #10b981;
}

.kpi-card.kpi-overdue {
    --kpi-accent: linear-gradient(135deg, #ef4444, #dc2626);
    --kpi-accent-color: #ef4444;
}

.kpi-card.kpi-progress {
    --kpi-accent: linear-gradient(135deg, #3b82f6, #2563eb);
    --kpi-accent-color: #3b82f6;
}

.kpi-card.kpi-review {
    --kpi-accent: linear-gradient(135deg, #f59e0b, #d97706);
    --kpi-accent-color: #f59e0b;
}

.kpi-card.kpi-time {
    --kpi-accent: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --kpi-accent-color: #8b5cf6;
}

.kpi-card.kpi-cycle {
    --kpi-accent: linear-gradient(135deg, #06b6d4, #0891b2);
    --kpi-accent-color: #06b6d4;
}

.kpi-card.kpi-total-time {
    --kpi-accent: linear-gradient(135deg, #ec4899, #db2777);
    --kpi-accent-color: #ec4899;
}

/* --- Charts Grid --- */
.reports-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.report-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

.report-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.report-chart-card h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-chart-card h3 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Full-width chart */
.report-chart-full {
    grid-column: 1 / -1;
}

/* --- Filters Card --- */
.reports-filters-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.reports-filters-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

.reports-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.reports-filter-simple-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.reports-filter-simple-row .filter-group {
    min-width: 130px;
}

.reports-filter-simple-row .filter-group.filter-dates {
    flex: 1;
    min-width: 260px;
    max-width: 400px;
}

.reports-filter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reports-filter-label i {
    margin-right: 0.25rem;
}

.reports-filter-label .filter-actions {
    float: right;
    font-weight: normal;
}

.reports-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}

.reports-date-range input[type="date"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 0.3rem;
    background: transparent;
    min-width: 100px;
    box-shadow: none;
}

.reports-date-range input[type="date"]:focus {
    transform: none;
    box-shadow: none;
}

.reports-date-range .date-sep {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mini button for select all/none */
.reports-mini-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
}

.reports-mini-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.reports-mini-btn::before {
    display: none;
}

.reports-update-btn {
    height: 42px;
    padding: 0 1.25rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Secondary button style (outlined) */
.button-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button-secondary::before {
    display: none;
}

.button-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Process Table --- */
.reports-process-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.reports-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

.reports-process-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reports-process-section h3 i {
    color: var(--primary-color);
}

.process-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.process-progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

.process-progress-bar-fill.complete {
    background: linear-gradient(135deg, #10b981, #059669);
}

.process-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.process-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* --- Calculator Section --- */
.reports-calc-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.reports-calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.reports-calc-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reports-calc-card h3 i {
    color: #8b5cf6;
}

.calc-tag-grid {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.calc-tag-grid .calc-tag-group {
    flex: 1;
    min-width: 180px;
}

.calc-tag-grid .calc-tag-group label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.calc-tag-grid .calc-tag-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 110px;
    background: #fff;
    font-size: 0.85rem;
}

.calc-tag-grid .calc-separator {
    font-size: 1.5rem;
    color: var(--text-light);
    padding-top: 1.5rem;
}

.calc-result {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    text-align: center;
}

.calc-result .calc-result-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.calc-result .calc-result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.calc-result .calc-result-details {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* --- Loading Overlay --- */
.reports-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reports-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.reports-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 119, 190, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.reports-loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Header --- */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reports-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .reports-charts-grid {
        grid-template-columns: 1fr;
    }

    .reports-filter-row {
        grid-template-columns: 1fr;
    }

    .reports-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reports-filter-simple-row {
        flex-direction: column;
    }

    .kpi-card {
        padding: 1.25rem 1rem;
        min-height: 130px;
    }

    .kpi-card .kpi-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .kpi-card .kpi-value {
        font-size: 1.75rem;
    }

    .kpi-card .kpi-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .kpi-card {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }

    .kpi-card .kpi-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .kpi-card .kpi-value {
        font-size: 1.5rem;
    }

    .kpi-card .kpi-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
}