﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    padding-top: 64px;
    padding-bottom: 72px;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #6200ea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.screen-title {
    font-size: 20px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .icon-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

    .user-info:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #bb86fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
}

.user-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

    .user-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

    .user-menu-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .user-menu-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .user-menu-item:hover {
        background: #f5f5f5;
    }

    .user-menu-item .material-icons {
        color: #666;
        font-size: 20px;
    }

    .user-menu-item.logout {
        color: #d32f2f;
        border-top: 1px solid #eee;
    }

        .user-menu-item.logout .material-icons {
            color: #d32f2f;
        }

.main-content {
    padding: 16px;
    min-height: calc(100vh - 136px);
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

    .search-box .material-icons {
        color: #666;
        margin-right: 8px;
    }

    .search-box input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        font-family: 'Roboto', sans-serif;
    }

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 12px;
    border-radius: 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .chip:hover {
        background: #e0e0e0;
    }

    .chip.active {
        background: #6200ea;
        color: white;
        border-color: #6200ea;
    }

    .chip .material-icons {
        font-size: 16px;
    }

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    text-align: center;
}

    .stat-card .stat-number {
        font-size: 28px;
        font-weight: 700;
        color: #6200ea;
        margin-bottom: 4px;
    }

    .stat-card .stat-label {
        font-size: 12px;
        color: #666;
        text-transform: uppercase;
    }

.chamados-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chamado-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border-left: 4px solid #6200ea;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .chamado-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

    .chamado-card.urgente {
        border-left-color: #d32f2f;
    }

    .chamado-card.alta {
        border-left-color: #f57c00;
    }

    .chamado-card.media {
        border-left-color: #fbc02d;
    }

    .chamado-card.baixa {
        border-left-color: #388e3c;
    }

.chamado-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.chamado-id {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.chamado-titulo {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 4px 0 8px 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

    .status-badge.aberto {
        background: #e3f2fd;
        color: #1976d2;
    }

    .status-badge.em-andamento {
        background: #fff3e0;
        color: #f57c00;
    }

    .status-badge.aguardando {
        background: #fce4ec;
        color: #c2185b;
    }

    .status-badge.resolvido {
        background: #e8f5e9;
        color: #388e3c;
    }

    .status-badge.fechado {
        background: #f5f5f5;
        color: #757575;
    }

.chamado-descricao {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chamado-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.chamado-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .meta-item .material-icons {
        font-size: 16px;
        color: #999;
    }

.prioridade-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

    .prioridade-badge.urgente {
        background: #ffebee;
        color: #d32f2f;
    }

    .prioridade-badge.alta {
        background: #fff3e0;
        color: #f57c00;
    }

    .prioridade-badge.media {
        background: #fffde7;
        color: #f9a825;
    }

    .prioridade-badge.baixa {
        background: #e8f5e9;
        color: #388e3c;
    }

.fab {
    position: fixed;
    bottom: 88px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #6200ea;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

    .fab:hover {
        background: #7c27f0;
        transform: scale(1.1);
    }

    .fab .material-icons {
        font-size: 24px;
    }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #757575;
    text-decoration: none;
    min-width: 64px;
}

    .nav-item:hover {
        background: rgba(98, 0, 234, 0.08);
        border-radius: 12px;
    }

    .nav-item.active {
        color: #6200ea;
    }

    .nav-item .material-icons {
        font-size: 24px;
    }

    .nav-item span {
        font-size: 12px;
        font-weight: 500;
    }

    .nav-item.active .material-icons {
        color: #6200ea;
    }

@media (max-width: 600px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .chamado-footer {
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }

    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
}
