* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --primary-color-rgb: 33, 150, 243;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --purple-color: #9C27B0;
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 80px;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05);
}

.header-text {
    text-align: center;
}

.header-text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.app-main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

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

.stat-card i {
    font-size: 1.5rem;
}

.stat-card.urgent i {
    color: var(--danger-color);
}

.stat-card.in-progress i {
    color: var(--warning-color);
}

.stat-card.completed i {
    color: var(--success-color);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.tasks-container {
    display: grid;
    gap: 1rem;
}

.task-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border-left: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.task-card.priority-alta {
    border-left-color: var(--danger-color);
}

.task-card.priority-media {
    border-left-color: var(--warning-color);
}

.task-card.priority-baixa {
    border-left-color: var(--success-color);
}

.task-card.status-concluida {
    opacity: 0.7;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 0.5rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    flex: 1;
}

.task-client {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.task-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.task-priority.alta {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.task-priority.media {
    background-color: rgba(255, 193, 7, 0.1);
    color: #f57c00;
}

.task-priority.baixa {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.task-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
}

.task-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.task-info-item i {
    color: var(--text-secondary);
    width: 16px;
}

.task-progress {
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #388E3C;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #333;
}

.btn-warning:hover {
    background-color: #F57C00;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #D32F2F;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.form-container {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.task-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input:not([type="range"]),
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface-color);
}

.form-group input:not([type="range"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timer-container {
    max-width: 600px;
    margin: 0 auto;
}

.timer-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.active-task-info {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.active-task-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.active-task-details p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.time-logs {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.time-logs h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.time-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.time-log-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.time-log-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.time-log-duration {
    font-weight: bold;
    color: var(--primary-color);
}

.dashboard-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.metric-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.team-member:last-child {
    border-bottom: none;
}

.client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.deadline-item.urgent {
    color: var(--danger-color);
    font-weight: 500;
}

.big-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    text-align: center;
}

.total-time-worked {
    text-align: center;
}

.faq-container-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container-wrapper h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(33, 150, 243, 0.1);
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

.faq-answer[hidden] {
    display: none;
}

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

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 8px;
    min-width: 60px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.1);
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-main p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-tagline {
    font-size: 0.8rem !important;
    opacity: 0.7;
    font-style: italic;
}

.footer-main a {
    color: var(--primary-color);
   
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 1px;
    
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
  
}

.footer-main a:hover {
    color: var(--primary-color);
    background: rgba(33, 150, 243, 0.1);
    text-decoration-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-main a:focus {
    outline: none;
    background: rgba(33, 150, 243, 0.15);
    text-decoration-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(33, 150, 243, 0.1);
    text-decoration-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-links a:focus {
    outline: none;
    background: rgba(33, 150, 243, 0.15);
    text-decoration-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.footer-links .separator {
    color: var(--border-color);
    font-weight: bold;
}

.task-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 2000;
    padding: 1rem 1rem 1rem 1rem;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .task-modal {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
        padding-top: 60px;
        pointer-events: auto;
    }
}

.task-modal.active {
    display: flex;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    pointer-events: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .task-modal {
        padding-top: 40px;
        pointer-events: auto;
    }
    
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        margin: 0.25rem;
        border-radius: 8px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.25rem;
    flex: 1;
    padding-right: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

.modal-body {
    padding: 1.5rem;
}

.modal-compact-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.modal-row.full-width {
    grid-template-columns: 1fr;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: auto;
}

.modal-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-field span,
.modal-field select,
.modal-field input:not([type="range"]),
.modal-field textarea {
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.5rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 2.5rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.modal-field span.readonly-field {
    background: var(--surface-color);
    border: none;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.modal-field select,
.modal-field input:not([type="range"]),
.modal-field textarea {
    cursor: pointer;
}

.modal-field input[type="text"],
.modal-field input[type="date"],
.modal-field input[type="number"],
.modal-field textarea {
    cursor: text;
}

.modal-field select:focus,
.modal-field input:not([type="range"]):focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.modal-field textarea {
    resize: vertical;
    min-height: 4rem;
    font-family: inherit;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1rem 1rem 0 1rem;
    }
    
    .modal-compact-layout {
        gap: 0.75rem;
    }
    
    .modal-row {
        gap: 0.75rem;
    }
    
    .modal-field label {
        font-size: 0.8rem;
    }
    
    .modal-field span,
    .modal-field select,
    .modal-field input:not([type="range"]),
    .modal-field textarea {
        font-size: 0.9rem;
        min-height: 2.25rem;
    }
    
    .modal-field textarea {
        min-height: 3rem;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 0.75rem 0.75rem 0 0.75rem;
    }
    
    .modal-compact-layout {
        gap: 0.5rem;
    }
    
    .modal-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .modal-field label {
        font-size: 0.75rem;
    }
    
    .modal-field span,
    .modal-field select,
    .modal-field input:not([type="range"]),
    .modal-field textarea {
        font-size: 0.85rem;
        min-height: 2rem;
        padding: 0.4rem;
    }
    
    .modal-field textarea {
        min-height: 2.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
}

/* Estilos antigos removidos - substituídos pelo novo layout compacto */

/* Estilos removidos - não mais necessários */

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.progress-container input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.progress-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    z-index: 10;
}

.progress-container input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.progress-container span {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .progress-container {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .progress-container {
        gap: 0.5rem;
    }
    
    .progress-container input[type="range"] {
        height: 5px;
    }
    
    .progress-container input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .progress-container input[type="range"]::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    .progress-container span {
        min-width: 30px;
        font-size: 0.8rem;
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
    background: var(--surface-color);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .modal-actions {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .action-buttons {
        gap: 0.4rem;
    }
    
    .action-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 2.5rem;
    }
    
    .action-buttons .btn i {
        font-size: 0.9rem;
    }
}

.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.drag-over {
    border-top: 3px solid var(--primary-color);
}

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 80px;
    left: 1rem;
    right: 1rem;
    z-index: 3000;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: slideInFromTop 0.3s ease-out;
    max-width: 500px;
    margin: 0 auto;
}

.notification-error {
    background: var(--danger-color);
    color: white;
}

.notification-success {
    background: var(--success-color);
    color: white;
}

.notification-info {
    background: var(--primary-color);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.notification-content i:first-child {
    font-size: 1.2rem;
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.2s;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.notification.closing {
    animation: slideOutToTop 0.3s ease-in forwards;
}

@media (max-width: 768px) {
    .notification {
        left: 0.5rem;
        right: 0.5rem;
        top: 70px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .app-logo {
        height: 50px;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .app-main {
        padding: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .task-actions {
        justify-content: center;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(80vh - 2rem);
       
    }
    
    /* Estilos removidos - não mais necessários */
    
    .modal-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .task-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .task-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .task-card {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .task-info-item {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }
    
    .nav-item span {
        display: none;
    }
    
    .bottom-nav {
        padding: 0.75rem 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        text-align: center;
        border: 1px solid var(--primary-color);
        border-radius: 6px;
        background: rgba(33, 150, 243, 0.05);
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background: rgba(33, 150, 243, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-main a {
        font-size: 0.9rem;
      
        text-align: center;
       
        background: rgba(33, 150, 243, 0.05);
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .footer-main a:hover {
        background: rgba(33, 150, 243, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .footer-logo {
        height: 35px;
    }
}
