/* Reset e Variáveis */
:root {
    --primary-color: #3498db;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --dark-text: #333333;
    --light-text: #6c757d;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.atividade-atrasada {
    background-color: #ffdddd;
    border-left: 4px solid #ff0000;
}

.atividade-hoje {
    background-color: #ffffcc;
    border-left: 4px solid #ffcc00;
}

.atividade-futura {
    background-color: #eeeeee;
    border-left: 4px solid #cccccc;
}

.sem-atividade {
    /* Estilo padrão sem atividade */

/* Layout Principal */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 0.75rem 1.25rem;
    z-index: 1030;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-fixed img {
    height: 50px;
    margin-right: 1rem;
    object-fit: contain;
}

.header-fixed h2 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-wrapper {
    margin-top: 85px;
    padding: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Menu */
.menu-container {
    position: relative;
    display: inline-block;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark-text);
    transition: var(--transition);
}

.hamburger-btn:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu a {
    color: var(--dark-text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Submenu */
.submenu {
    display: none;
    padding-left: 0;
    margin-top: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1.5rem;
}

.menu-item > a:after {
    content: "▶";
    font-size: 0.7rem;
    transition: transform 0.3s;
    position: absolute;
    right: 1rem;
}

.menu-item.open > a:after {
    transform: rotate(90deg);
}

/* Títulos */
h1, h2 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f1f1;
}

h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
}

/* Calendário */
#calendar {
    max-width: 1100px;
    margin: 0 auto;
    height: 700px;
}

.fc-event {
    cursor: pointer;
    transition: var(--transition);
}

.fc-event-past {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.fc-event-future {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc-event-completed {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.legend {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Modal */
.modal-activity {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal-activity-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger-color);
}

/* Botões */
.btn {
    padding: 8px 16px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

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

.btn-secondary {
    background-color: #6c757d;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-fixed {
        padding: 0.5rem 1rem;
    }
    
    .header-fixed h2 {
        font-size: 1.25rem;
    }
    
    .content-wrapper {
        margin-top: 70px;
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .modal-activity-content {
        width: 95%;
        margin: 20% auto;
    }
}

@media (max-width: 576px) {
    .dropdown-menu {
        min-width: 180px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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