/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}



.content-section { display: none; }
.content-section.active { display: block; }



/* Página de Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-header { margin-bottom: 30px; }
.login-header i { font-size: 3rem; color: #25D366; margin-bottom: 10px; }
.login-header h1 { margin-bottom: 5px; font-size: 2rem; }
.login-header p { color: #666; }
.login-form { margin-bottom: 30px; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%); color: #666;
}
.input-group input {
    width: 100%; padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0; border-radius: 10px;
}
.input-group input:focus { outline: none; border-color: #25D366; }

.login-btn {
    width: 100%; padding: 15px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: bold;
    cursor: pointer; transition: transform 0.2s;
}
.login-btn:hover { transform: translateY(-2px); }

/* Dashboard */
.dashboard { display: flex; min-height: 100vh; background: #f5f7fa; }

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white; display: flex; flex-direction: column;
}
.sidebar-header { padding: 30px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header h2 { font-size: 1.5rem; font-weight: 300; }
.sidebar-nav { flex: 1; padding: 20px 0; }
.sidebar-nav ul { list-style: none; }
.nav-link {
    display: block; padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none; transition: all 0.3s;
    border-left: 3px solid transparent;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white; border-left-color: #25D366;
}
.logout-btn {
    width: 100%; padding: 12px;
    background: transparent; border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: rgba(255,255,255,0.8);
    cursor: pointer; transition: all 0.3s;
}
.logout-btn:hover { background: #e74c3c; border-color: #e74c3c; color: white; }

/* Main Content */
.main-content { flex: 1; background: #f8f9fa; }
.header {
    background: white; padding: 20px 30px; border-bottom: 1px solid #e0e6ed;
    display: flex; justify-content: space-between; align-items: center;
}
.header h1 { font-size: 1.8rem; font-weight: 600; }

/* Cards */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px; margin-bottom: 30px;
}
.card {
    background: white; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card.full-width { grid-column: 1 / -1; }
.card-header {
    padding: 15px; border-bottom: 1px solid #e0e6ed;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}
.card-content { padding: 20px; }

/* Inputs / Botões */
.input-row { display: flex; gap: 10px; margin-top: 10px; }
input, select {
    padding: 10px; border: 2px solid #e0e6ed;
    border-radius: 8px; flex: 1;
}
.btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.btn-primary { background: linear-gradient(45deg, #667eea, #764ba2); color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.full-btn { width: 100%; margin-top: 10px; }
.qr-box { display: flex; justify-content: center; margin-top: 10px; }

/* Tags (alertas) */
.tags-container {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0; padding: 6px;
}
.tag-item {
  display: inline-flex; align-items: center;
  background: #f1f3f9; color: #333;
  padding: 6px 10px; border-radius: 20px;
  font-size: 0.85rem;
}
.tag-item button {
  margin-left: 6px; border: none;
  background: transparent; color: #e74c3c;
  cursor: pointer; font-weight: bold;
}
