/* ================================================= */
/* ESTILOS GERAIS E PÁGINA INICIAL                   */
/* ================================================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
}
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1599464118783-662582098d5a');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; }
.hero-button {
    display: inline-block; padding: 15px 30px; background-color: #007bff; color: #ffffff;
    text-decoration: none; font-size: 1.1rem; border-radius: 5px; transition: background-color 0.3s ease;
    border: none; cursor: pointer;
}
.hero-button:hover { background-color: #0056b3; }

.specialties-section { 
    padding: 60px 20px; text-align: center; background-color: #ffffff; min-height: 100vh;
    box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
}
.specialties-section h2 { font-size: 2.5rem; color: #333; margin-bottom: 50px; text-transform: uppercase; }
.specialties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; width: 100%; }
.specialty-card {
    background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 30px 20px; text-decoration: none;
    color: #333; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.specialty-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.specialty-card i { font-size: 3rem; color: #007bff; margin-bottom: 15px; }
.specialty-card span { font-size: 1.1rem; font-weight: 600; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content-wrapper { position: relative; }
.modal-close-btn { position: absolute; top: 10px; right: 15px; font-size: 2rem; color: #aaa; cursor: pointer; z-index: 1001; }
.form {
  display: flex; flex-direction: column; gap: 10px; padding-left: 2em; padding-right: 2em;
  padding-bottom: 2em; background-color: #171717; border-radius: 20px;
}
#heading { text-align: center; margin: 2em; color: rgb(0, 255, 200); font-size: 1.2em; text-transform: uppercase; }
.field {
  display: flex; align-items: center; justify-content: center; gap: 0.5em; border-radius: 25px;
  padding: 0.6em; border: none; outline: none; color: white; background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}
.input-field { background: none; border: none; outline: none; width: 100%; color: rgb(0, 255, 200); }
.form .btn { display: flex; justify-content: center; flex-direction: row; margin-top: 2.5em; }
.button1 {
  padding: 0.5em 1.1em; border-radius: 5px; margin-right: 0.5em; border: none;
  outline: none; transition: .4s ease-in-out; background-color: #252525;
  color: white; cursor: pointer;
}
.button1:hover { background-color: black; color: white; }

.selection-actions {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.action-button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-green { background-color: #28a745; color: white; }
.btn-blue { background-color: #007bff; color: white; }
.btn-yellow { background-color: #ffc107; color: black; }
.btn-red { background-color: #dc3545; color: white; }

/* ================================================= */
/* ESTILOS PARA O DASHBOARD (LAYOUT) - VERSÃO "BANKSY" */
/* ================================================= */
:root {
    --primary-green: #05a368;
    --sidebar-bg: #0b101e;
    --main-bg: #121828;
    --card-bg: rgba(11, 16, 30, 0.5); 
    --text-color: #e5e7eb;
    --border-color: rgba(5, 163, 104, 0.4);
    --neon-glow: rgba(5, 163, 104, 0.7);
    --red-color: #dc3545;
}

body {
    color: var(--text-color);
    background-color: var(--main-bg);
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}
.sidebar {
    background: linear-gradient(to bottom, rgba(11, 16, 30, 0.8), rgba(11, 16, 30, 1)), var(--sidebar-bg);
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 30px var(--neon-glow);
}

.sidebar-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow: auto; 
}
.sidebar-header img {
    float: left; 
    margin-right: 12px;
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.sidebar-header h3, .sidebar-header p, .sidebar-nav a {
    text-shadow: 0 0 8px var(--neon-glow);
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: block; color: var(--text-color); text-decoration: none; padding: 15px;
    border-radius: 8px; margin-bottom: 5px; 
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.sidebar-nav li a:hover { 
    background-color: var(--card-bg); 
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
    transform: translateX(5px);
}
.sidebar-nav li.active a { 
    background: linear-gradient(to right, var(--primary-green), #0cb87b); 
    color: white; 
    box-shadow: 0 0 25px var(--neon-glow);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    border-left: 3px solid #fff;
}
.sidebar-nav i { margin-right: 10px; }

.main-container {
    background-color: var(--main-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: rgba(11, 16, 30, 0.6);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-left-group, .nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.top-nav input, .doctor-badge {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 15px rgba(0,0,0,0.5), inset 0 0 5px rgba(5, 163, 104, 0.4);
    transition: all 0.2s ease;
    border-radius: 8px;
}
.top-nav input {
    width: 225px; 
    padding: 10px 15px;
    color: var(--text-color);
}
.top-nav input::placeholder {
    color: #8c909a;
}
.top-nav input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 25px var(--neon-glow);
}
.doctor-badge {
    gap: 12px; padding: 5px;
}

.doctor-badge p {
    margin: 0; font-weight: bold; color: var(--text-color);
}
.doctor-icon-wrapper {
    width: 40px; height: 40px; border-radius: 4px;
    background-color: var(--main-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-green);
    font-size: 1.8em; /* Ícone aumentado */
}

.admin-badge {
    font-weight: bold; font-size: 1.1em; color: var(--text-color);
}

.consult-separator {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    padding: 0 10px; 
}
.consult-separator i {
    margin-top: 4px; 
    font-size: 1.5em; 
}

.nav-button {
    padding: 6px 12px; border-radius: 5px; text-decoration: none;
    font-weight: 600; font-size: 0.9em; transition: all 0.2s ease;
    text-align: center; border: 2px solid transparent;
}
.nav-button-specialties {
    border-color: #28a745; background-color: #28a745;
    color: black; text-transform: uppercase;
}
.nav-button-specialties:hover {
    background-color: #218838; border-color: #1e7e34; color: black;
}
.nav-button-logout {
    border-color: var(--red-color); background-color: var(--red-color);
    color: white;
}
.nav-button-logout:hover {
    background-color: #c82333; border-color: #c82333;
}

#page-title {
    margin-bottom: 20px; color: var(--text-color);
    text-shadow: 0 0 15px var(--neon-glow);
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0,0,0,0.5), inset 0 0 10px var(--neon-glow);
}
.widget h3 {
    margin: 0 0 10px 0;
    color: var(--primary-green);
    text-shadow: 0 0 8px var(--neon-glow);
}
.widget .widget-data {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 5px 0;
}
.widget .widget-subtitle {
    font-size: 0.9em;
    color: #8c909a;
}