/* ========================= */
/* RESET */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.calendar-view {
    flex: 1;
    transition: 0.3s;
}

.nav {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
}

.nav:hover {
    background: #2980b9;
}

/* CARDS DE LOGIN MENORES */
.login-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.login-card {
    width: 220px;
    padding: 15px;
    text-align: center;
}

.calendar td:hover {
    background: #f9f9f9;
}

.sidebar a.exit-admin {
    background: #e74c3c;
}

/* FORM DENTRO DE CARD */
.card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card h2 {
    margin-bottom: 15px;
}

.card h4 {
    margin-top: 10px;
}

/* ========================= */
/* CARD MODERNO */
/* ========================= */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    margin: auto;
    
    /* sombra suave */
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.05),
        0 4px 10px rgba(0,0,0,0.04);

    /* leve efeito glass */
    border: 1px solid rgba(0,0,0,0.04);
}

/* ========================= */
/* TÍTULO */
/* ========================= */
.card h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* ========================= */
/* FORM */
/* ========================= */
.card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================= */
/* INPUTS */
/* ========================= */
input, textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

/* FOCO */
input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}

/* TEXTAREA MAIS BONITA */
textarea {
    min-height: 90px;
    resize: vertical;
}

/* ========================= */
/* BOTÃO */
/* ========================= */
.btn {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;

    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* HOVER */
.btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6692);
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        border-radius: 12px;
    }
}

/* ========================= */
/* BODY */
/* ========================= */
body {
    background: #f4f6f9;
}

/* ========================= */
/* HEADER */
/* ========================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================= */
/* BOTÕES */
/* ========================= */
.btn {
    display: inline-block;
    padding: 8px 12px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #2980b9;
}

.btn-orange {
    background: #f39c12;
}

.btn-orange:hover {
    background: #d68910;
}

.btn-red {
    background: #e74c3c;
}

.btn-red:hover {
    background: #c0392b;
}

.logout-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ========================= */
/* LAYOUT */
/* ========================= */
.layout {
    display: flex;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */
.sidebar {
    width: 220px;
    background: #1f2d3d;
    min-height: 100vh;
    padding: 20px 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar a:hover {
    background: #2c3e50;
}

.sidebar-title {
    color: #95a5a6;
    font-size: 11px;
    margin: 10px;
    text-transform: uppercase;
}

/* ÍCONES */
.sidebar i {
    width: 18px;
    text-align: center;
}

/* ========================= */
/* CONTEÚDO */
/* ========================= */
.content {
    flex: 1;
    padding: 25px;
}

/* ========================= */
/* CARD PADRÃO */
/* ========================= */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ========================= */
/* GRID EMPRESAS */
/* ========================= */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ========================= */
/* CARD EMPRESA */
/* ========================= */
.company-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.company-card h3 {
    margin-bottom: 10px;
}

.company-info p {
    margin: 4px 0;
}

/* STATUS */
.status-active {
    color: green;
    font-weight: bold;
}

.status-inactive {
    color: red;
    font-weight: bold;
}

/* ========================= */
/* EVENTOS */
/* ========================= */
.event-list {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.event-list small {
    display: block;
    margin-bottom: 5px;
}

/* ========================= */
/* AÇÕES */
/* ========================= */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================= */
/* RESPONSIVO (SEM QUEBRAR LAYOUT) */
/* ========================= */
@media (max-width: 768px) {

.layout {
    flex-direction: column;
}

.sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sidebar a {
    flex: 1 1 45%;
    justify-content: center;
}

.content {
    padding: 15px;
}

.company-grid {
    grid-template-columns: 1fr;
}

.actions {
    flex-direction: column;
}

.btn {
    width: 100%;
}

}