* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #0b1f33 0%, #1a3a52 100%);
    color: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .logo-container {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.sidebar .logo-container img {
    width: 150px; /* Ajuste o tamanho conforme necessário */
    height: auto;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.sidebar a.active {
    background-color: #ff6b35;
    font-weight: bold;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header-top {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top h1 {
    font-size: 24px;
    color: #0b1f33;
}

.header-top .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    color: #0b1f33;
    margin-bottom: 5px;
}

.header span {
    color: #64748b;
    font-size: 14px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6b35;
}

.card h3 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    color: #0b1f33;
}

/* TABLE BOX */
.table-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table-box h2 {
    font-size: 18px;
    color: #0b1f33;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* TABELAS */
table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f5f5f5;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #0b1f33;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

/* FORMULÁRIOS */
form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0b1f33;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-success {
    background-color: #16a34a;
}

.btn-success:hover {
    background-color: #15803d;
}

.btn-secondary {
    background-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* STATUS */
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-aberto {
    background-color: #fef3c7;
    color: #92400e;
}

.status-andamento {
    background-color: #dbeafe;
    color: #0c4a6e;
}

.status-finalizado {
    background-color: #dcfce7;
    color: #166534;
}

.status-cancelado {
    background-color: #fee2e2;
    color: #dc2626;
}

/* INFO BAR */
.info-bar {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.info-bar.success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.info-bar.error {
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.info-bar.warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 200px;
        overflow-x: auto;
        display: flex;
        align-items: center;
    }

    .sidebar h2 {
        margin-bottom: 0;
        border-bottom: none;
        border-right: 2px solid rgba(255, 255, 255, 0.2);
        padding-right: 20px;
        padding-bottom: 0;
        margin-right: 20px;
        min-width: 150px;
    }

    .sidebar ul {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .sidebar li {
        margin-bottom: 0;
    }

    .sidebar a {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 12px;
    }

    .card p {
        font-size: 20px;
    }

    .content {
        padding: 15px;
    }

    .table-box {
        padding: 15px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        max-height: auto;
    }

    .sidebar h2 {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 15px;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .sidebar ul {
        flex-direction: column;
        width: 100%;
    }

    .sidebar a {
        padding: 10px;
    }

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

    .content {
        padding: 10px;
    }

    table {
        font-size: 11px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px; /* Previne zoom em iOS */
    }
}
