:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --dark-0: #0b0f19;
    --dark-1: #111827;
    --dark-2: #1f2937;
    --dark-3: #374151;
    --light-0: #f9fafb;
    --light-1: #f3f4f6;
    --light-2: #e5e7eb;
    --light-3: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --recurrent: #a78bfa;
    --glass: rgba(17, 24, 39, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-0);
    color: var(--light-1);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%);
}

/* Layout Base */
.app {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    border: 1px solid var(--dark-3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--dark-3);
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--light-1), var(--light-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 0.8rem;
    color: var(--light-3);
    margin-top: 0.25rem;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--light-3);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    background: var(--dark-2);
    color: var(--light-1);
}

.nav-item i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.nav-item.active {
    color: var(--primary);
    font-weight: 500;
}

.user-profile {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light-1);
}

.user-role {
    font-size: 0.75rem;
    color: var(--light-3);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid var(--dark-3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-1);
}

.header-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 100;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--dark-2);
    color: var(--light-1);
    border: 1px solid var(--dark-3);
}

.btn-secondary:hover {
    background: var(--dark-3);
    border-color: var(--primary);
}

.btn-danger {
    background: linear-gradient(to right, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--dark-3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.primary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-title {
    font-size: 0.9rem;
    color: var(--light-3);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    background: linear-gradient(to right, var(--light-1), var(--light-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Tasks Section */
.tasks-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid var(--dark-3);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.report-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid var(--dark-3);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid var(--dark-3);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.settings-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--dark-3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--dark-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-1);
}

.section-actions {
    display: flex;
    gap: 0.75rem;
}

.section-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    background: var(--dark-2);
    color: var(--light-3);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-btn:hover {
    background: var(--dark-3);
    color: var(--light-1);
}

.section-btn.active {
    background: var(--primary);
    color: white;
}

/* Report Header */
.report-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-3);
    background: var(--dark-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.company-logo {
    width: 80px;
    height: auto;
}

.company-text h2 {
    font-size: 1.25rem;
    color: var(--light-1);
    margin-bottom: 0.25rem;
}

.company-text p {
    font-size: 0.85rem;
    color: var(--light-3);
}

.report-info {
    text-align: right;
}

.report-info h3 {
    font-size: 1.5rem;
    color: var(--light-1);
    margin-bottom: 0.5rem;
}

.report-period {
    font-size: 0.9rem;
    color: var(--light-2);
    background: var(--dark-3);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    display: inline-block;
}

/* Executive Summary */
.executive-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-3);
}

.metric-card {
    background: var(--dark-2);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.metric-card h4 {
    font-size: 0.9rem;
    color: var(--light-3);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-1);
    margin-bottom: 0.25rem;
}

.metric-description {
    font-size: 0.8rem;
    color: var(--light-3);
}

.metric-card.completed {
    border-left-color: var(--success);
}

.metric-card.pending {
    border-left-color: var(--warning);
}

.metric-card.not-completed {
    border-left-color: var(--danger);
}

/* Report Meta */
.report-meta {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--dark-2);
    color: var(--light-3);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--dark-3);
}

.task-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Report Content */
.report-content {
    flex: 1;
    padding: 1.5rem;
}

/* Task Groups */
.task-group {
    margin-bottom: 2rem;
}

.group-header {
    background: var(--dark-2);
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.group-header h3 {
    font-size: 1.1rem;
    color: var(--light-1);
}

.group-count {
    background: var(--dark-3);
    color: var(--light-1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Tasks Table */
.tasks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tasks-table thead th {
    position: sticky;
    top: 0;
    background: var(--dark-2);
    color: var(--light-3);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.tasks-table tbody tr {
    transition: all 0.2s;
}

.tasks-table tbody tr:nth-child(even) {
    background: rgba(74, 85, 104, 0.1);
}

.tasks-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.tasks-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--dark-3);
    vertical-align: middle;
}

.tasks-table tr.completed {
    opacity: 0.7;
}

.tasks-table tr.completed td {
    color: var(--light-3);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.not-completed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-badge i {
    font-size: 0.8rem;
}

/* Tasks Container */
.tasks-container {
    flex: 1;
    overflow: auto;
}

/* Task Cells */
.task-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-priority {
    width: 6px;
    height: 40px;
    border-radius: 3px;
    background: var(--dark-3);
    flex-shrink: 0;
}

.task-priority.high {
    background: var(--danger);
    animation: pulse 1.5s infinite;
}

.task-priority.medium {
    background: var(--warning);
}

.task-priority.low {
    background: var(--success);
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-weight: 500;
    color: var(--light-1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.task-title .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    background: var(--dark-3);
    color: var(--light-3);
}

.task-title .tag.recurrent {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
}

.task-title .tag.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.task-title .tag.not-completed {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.task-desc {
    color: var(--light-3);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--light-2);
}

.task-time i {
    color: var(--primary);
    font-size: 0.9rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--dark-3);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--light-3);
}

.action-btn:hover {
    background: var(--dark-3);
    color: var(--light-1);
    transform: translateY(-2px);
}

.action-btn.complete:hover {
    border-color: var(--success);
    color: var(--success);
}

.action-btn.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.action-btn.edit:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.postpone:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.action-btn.not-completed {
    transition: all 0.3s ease;
}

.action-btn.not-completed:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.action-btn.not-completed:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Container */
.form-container {
    padding: 2rem;
}

.form-meta {
    background-color: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-3);
    border-left: 4px solid var(--primary);
}

.form-meta i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-2);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--dark-3);
    border-radius: 0.75rem;
    color: var(--light-1);
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--dark-3);
    background-color: var(--dark-2);
    color: var(--light-1);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#ncReason {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    color: var(--light-2);
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--dark-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light-1);
}

.empty-text {
    color: var(--light-3);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* Modal de Edição */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark-1);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--dark-3);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

#notCompletedModal .modal-content {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-1);
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--light-3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

/* Alertas */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    z-index: 1000;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background-color: var(--success);
    color: white;
    border-left: 4px solid #0d9b6c;
}

.alert-danger {
    background-color: var(--danger);
    color: white;
    border-left: 4px solid #dc2626;
}

.alert-warning {
    background-color: var(--warning);
    color: white;
    border-left: 4px solid #e69500;
}

.alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert i {
    font-size: 1.25rem;
}

.alert-hide {
    animation: slideOut 0.3s ease-in forwards;
}

/* Estilo para tarefas não concluídas */
.tasks-table tr.not-completed {
    border-left: 4px solid var(--danger);
}

.tasks-table tr.not-completed td {
    position: relative;
}

.tasks-table tr.not-completed:hover {
    background: rgba(239, 68, 68, 0.05) !important;
}

.urgent-task {
    animation: pulseBackground 1.5s infinite;
}

/* Estilo para o motivo de não conclusão */
.not-completed-reason {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    font-size: 0.8rem;
    color: var(--light-2);
    border-radius: 0.25rem;
}

/* Recurrent Icon */
.recorrente-icon {
    color: var(--primary);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Report Footer */
.report-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--dark-3);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--light-3);
}

.signature-area {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--dark-3);
    width: 300px;
}

.confidential {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    display: inline-block;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--dark-2);
    min-width: 200px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    z-index: 1000;
    overflow: visible;
    border: 1px solid var(--dark-3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--light-1);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--dark-3);
}

.dropdown-content a.active {
    background: var(--primary);
    color: white;
}

/* Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.1rem;
    min-width: 200px;
}

.dropdown-submenu:hover .submenu {
    display: block;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.submenu-toggle i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.dropdown-submenu:hover .submenu-toggle i {
    transform: rotate(90deg);
}

.custom-date-range {
    padding: 0.75rem 1rem;
}

.custom-date-range input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--dark-3);
    border: 1px solid var(--dark-3);
    border-radius: 0.5rem;
    color: var(--light-1);
}

.custom-date-range input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem;
    font-size: 0.8rem;
    width: 100%;
}

/* Settings Section */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--dark-3);
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light-1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--dark-3);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-3);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.settings-label i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.settings-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-3);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--light-1);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.permission-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.permission-status i {
    font-size: 0.9rem;
}

.permission-status.granted {
    color: var(--success);
}

.permission-status.denied {
    color: var(--danger);
}

.permission-status.default {
    color: var(--light-3);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 200px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--dark-3);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.volume-value {
    width: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Test Button */
.test-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--dark-2);
    color: var(--light-1);
    border: 1px solid var(--dark-3);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.test-btn:hover {
    background: var(--dark-3);
    border-color: var(--primary);
}

#alarm-fallback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

#alarm-fallback i {
    font-size: 1.2rem;
}

#notCompletedModal .btn-warning {
    background: var(--warning);
    color: white;
}

#notCompletedModal .btn-warning:hover {
    background: #e69500;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes pulseBackground {
    0% { background-color: rgba(239, 68, 68, 0.1); }
    50% { background-color: rgba(239, 68, 68, 0.3); }
    100% { background-color: rgba(239, 68, 68, 0.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Print Styles */
@media print {
    .executive-summary {
        display: none !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 10px !important;
    }
    
    .app {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .report-section {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
    }
    
    .report-header {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .report-meta {
        padding-top: 0.2rem !important;
        margin-top: 0 !important;
    }

    .report-header h3 {
        margin-bottom: 0.1rem !important;
    }
    
    .company-text h2, .report-info h3 {
        color: black !important;
    }
    
    .report-period {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
    
    .tasks-table {
        width: 100%;
        font-size: 9px !important;
    }
    
    .tasks-table th, .tasks-table td {
        color: black !important;
        border-color: #ddd !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .tasks-table thead th {
        background: #f8f9fa !important;
        color: black !important;
        font-size: 8px !important;
    }
    
    .report-meta, .report-meta * {
        font-size: 9px !important;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 8px !important;
    }
    
    .report-content {
        padding: 0.5rem !important;
    }
    
    .section-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .tasks-table tbody tr {
        line-height: 1.2 !important;
    }
    
    .header {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .header-title {
        font-size: 12px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100%;
    }

    .header-actions {
        display: none !important;
    }

    .section-header {
        padding: 0.35rem 0.8rem !important;
    }

    .section-title {
        font-size: 18px !important;
    }

    .group-header h3 {
        font-size: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    .group-header {
        padding: 0.3rem 0.5rem !important;
        margin-top: 0.5rem !important;
    }

    .main-content {
        padding-bottom: 70px;
    }

    .report-footer {
        position: static;
        margin-top: 2rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .app {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 1rem;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-table {
        display: block;
        overflow-x: auto;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        gap: 0.75rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    
    .header .dropdown-content {
        right: 0;
        left: auto;
    }
    
    .dropdown-submenu .submenu {
        left: 0;
        top: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .report-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .company-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .report-info {
        text-align: center;
    }
    
    .executive-summary {
        grid-template-columns: 1fr;
    }
    
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .volume-control {
        width: 100%;
    }
}