/* Reset e Base */
* {
    /* color: rgb(0, 0, 0); */
    color: rgb(110 99 196);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAFAFA;
    color: #1a202c;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;          /* Fica fixo no topo ao rolar */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);  /* efeito de vidro */
    -webkit-backdrop-filter: blur(12px);
   /* background: rgba(102, 126, 234, 0.85); /* Roxo com transparência */
   /* background: linear-gradient(135deg, rgba(102,126,234,0.85) 0%, rgba(118,75,162,0.85) 100%); */
    color: white;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.nav-menu li span {
    color: rgb(5 198 0);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6f61c2;
}

.status-normal {
    background: #c6f6d5;
    color: #22543d;
}

.status-atencao {
    background: #fed7d7;
    color: #742a2a;
}

.status-manutencao {
    background: #feebc8;
    color: #744210;
}

/* Equipment Card */
.equipment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.equipment-card.status-atencao {
    border-color: #f56565;
    background: #fed7d7;
}

.equipment-card.status-normal {
    border-color: #48bb78;
    background: #c6f6d5;
}

.equipment-card.status-manutencao {
    border-color: #ed8936;
    background: #feebc8;
}

.equipment-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 12px;
}

.equipment-code {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a5568;
}

.equipment-type {
    color: #718096;
    font-size: 0.9rem;
    text-transform: capitalize;
}

/* Store Card */
.store-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.store-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.store-info {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.store-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success { background: #48bb78; }
.notification.error { background: #f56565; }
.notification.warning { background: #ed8936; }

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: 16px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Tema Escuro */
.dark-theme {
    color: rgb(0, 0, 0);
    background-color: #1a202c;
}

.dark-theme .card {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-theme .form-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-theme .equipment-card,
.dark-theme .store-card {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-theme .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .store-card-enhanced {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .store-name {
    color: white;
}

.dark-theme .action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-theme .recent-name {
    background: rgb(112 95 190 / 8%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .recent-title {
    color: white;
}

.dark-theme .item-title {
    color: white;
}

.dark-theme .nav-menu a {
    color: rgb(236 233 255);
}

.dark-theme .recent-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .form-label {
    color: #718096;
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-10 { gap: 10px; }
.gap-5 { gap: 5px; }
.gap-8 { gap: 8px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

.gap-7 { 
    justify-content: flex-end;
    grid-column: 4 / 5;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}