/* Estilos da Sidebar */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-header h3 {
    color: #ecf0f1;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li {
    padding: 0;
    position: relative;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 3px 0px 0px #fff inset;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empresa-info {
    margin-bottom: 15px;
}

.empresa-info h6 {
    color: #ecf0f1;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.empresa-info p {
    color: #bdc3c7;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.user-info {
    display: block;
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.logout-btn {
    display: flex;
    align-items: center;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: all 0.3s;
}

.logout-btn i {
    margin-right: 8px;
}

.logout-btn:hover {
    color: #fff;
}

#content {
    width: calc(100% - 250px);
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
}

/* Estilos das Configurações */
.card {
    background: #ffffff;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #2c3e50;
    background: transparent;
    border-bottom: 2px solid #2c3e50;
}

.form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    padding: 0.625rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

.form-select {
    border: 1px solid #ced4da;
    padding: 0.625rem;
}

.btn-primary {
    background: #2c3e50;
    border: none;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #34495e;
    transform: translateY(-1px);
}

.alert {
    border: none;
    border-radius: 0.25rem;
    padding: 1rem;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Estilos do Login */
.login-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.empresa-sidebar {
    width: 30%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.empresa-info {
    text-align: center;
}

.empresa-info h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    font-weight: 700;
    color: #ecf0f1;
}

.empresa-info h3 {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.empresa-info p {
    color: #95a5a6;
    font-size: 1rem;
}

.login-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    color: #34495e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 5px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #7f8c8d;
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #34495e;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2c3e50;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.login-footer a {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.toast-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
}

.manifesto-container {
    overflow: auto;
    max-height: 70vh;
    max-width: 100%;
}