/* Variables */
:root {
    --header-height: 70px;
    --navbar-height: 56px;
    --sindetran-black: #1a1a1a;
    --sindetran-yellow: #D4B572;
    --sindetran-yellow-hover: #C1A468;
    --sindetran-yellow-light: rgba(212, 181, 114, 0.1);
    --sindetran-yellow-light-hover: rgba(212, 181, 114, 0.2);
}

/* Header Styles */
.top {
    height: var(--header-height);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    background-color: #fff;
}

/* Logo and Brand */
.logo-icon {
    color: var(--sindetran-yellow) !important;
    filter: drop-shadow(0 2px 4px rgba(212, 181, 114, 0.2));
}

.brand-text {
    color: var(--sindetran-yellow) !important;
}

.system-name {
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

/* Search Bar Styles */
.search-form {
    position: relative;
    width: 100%;
}

.top .input-group {
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.top .input-group:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.top .input-group .form-control {
    border-radius: 20px 0 0 20px;
    padding-left: 1.2rem;
    border: 1px solid rgba(0,0,0,0.1);
    height: 42px;
}

.top .input-group .form-control:focus {
    border-color: var(--sindetran-yellow);
    box-shadow: none;
}

.top .input-group .btn {
    border-radius: 0 20px 20px 0;
    padding: 0 1.5rem;
    height: 42px;
    background-color: var(--sindetran-yellow);
    border-color: var(--sindetran-yellow);
    transition: all 0.2s ease;
}

.top .input-group .btn:hover {
    background-color: var(--sindetran-yellow-hover);
    border-color: var(--sindetran-yellow-hover);
}

/* Settings and Profile Dropdowns */
.settings-dropdown,
.profile-dropdown {
    position: relative;
}

.settings-icon {
    width: 38px;
    height: 38px;
    background-color: var(--sindetran-yellow-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-icon i {
    color: var(--sindetran-yellow);
    font-size: 1.2rem;
}

.settings-icon:hover {
    background-color: var(--sindetran-yellow-light-hover);
    transform: rotate(30deg);
}

.settings-dropdown .dropdown-toggle::after,
.profile-dropdown .dropdown-toggle::after {
    display: none;
}

.profile-icon {
    width: 38px;
    height: 38px;
    background-color: var(--sindetran-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sindetran-black);
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(212, 181, 114, 0.2);
}

.profile-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 181, 114, 0.3);
}

.settings-dropdown .dropdown-menu,
.profile-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
}

.settings-dropdown .dropdown-header,
.profile-dropdown .dropdown-header {
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.settings-dropdown .dropdown-item,
.profile-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.settings-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:hover {
    background-color: var(--sindetran-yellow-light);
}

.settings-dropdown .dropdown-item i,
.profile-dropdown .dropdown-item i {
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.settings-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Navbar Styles */
.navbar {
    background-color: #212529;
    padding: 0.5rem 1rem;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: var(--sindetran-yellow);
    color: var(--sindetran-black) !important;
}

.navbar .dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Authentication Styles */
body.auth-page {
    background: linear-gradient(135deg, var(--sindetran-black) 0%, #333333 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.login-header {
    background-color: var(--sindetran-black);
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--sindetran-yellow);
}

.login-header h1 {
    color: var(--sindetran-yellow);
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-header p {
    color: white;
    font-size: 12px;
    margin-bottom: 0;
}

.login-form {
    padding: 30px;
}

.login-form .form-control {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.login-form .form-control:focus {
    border-color: var(--sindetran-yellow);
    box-shadow: 0 0 0 0.2rem rgba(212, 181, 114, 0.25);
}

.btn-login {
    background-color: var(--sindetran-black);
    border: 2px solid var(--sindetran-black);
    color: var(--sindetran-yellow);
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    background-color: var(--sindetran-yellow);
    border-color: var(--sindetran-yellow);
    color: var(--sindetran-black);
}

.links-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

.links-container a {
    color: var(--sindetran-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links-container a:hover {
    color: #666;
    text-decoration: underline;
}

/* Base Styles */
#ajax-loading {
    top: 10px;
    left: 50%;
    margin-left: -20px;
    position: absolute;
    background-color: rgba(0, 0, 0, .1);
    border-radius: 5px;
    z-index: 99999;
}

.mini-loading {
    width: 40px;
    height: 20px;
    background-image: url(../img/loading.gif);
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    display: block;
}

body>container {
    clear: both;
    padding: 40px;
    margin: 25px;
}

body>footer {
    clear: both;
    padding: 40px;
}

body>footer p {
    color: #ccc;
    text-align: right;
}

/* internal clock */
.clock {
    bottom: 15px;
    right: 15px;
    padding: 10px 15px;    
    position: fixed;
    background: #333;
    border-radius: 5px;
}

.clock span {
    text-align: center;
    font-weight: bold;
    display: inline-block;
}

.clock span.sep { width: 15px; }

.clock .time span {
    color: #fff;
    font-size: 20px;
}

.clock .date { padding-top: 2px; }

.clock .date span {
    color: #ccc;
    font-size: 14px;
}

body>.container-fluid>h1 {
    padding: 0 0 20px 10px;
    margin: 0;
}

[v-cloak] {
  display: none;
}

/* Media queries para dispositivos móveis */
@media (max-width: 767px) {
    /* Ajustes do header para mobile */
    .top {
        height: auto;
        padding: 1rem 0;
    }
    
    /* Container do logo para mobile */
    .brand-section {
        margin-bottom: 1rem;
    }
    
    /* Ajustes da barra de busca para mobile */
    .search-form {
        padding: 0 1rem;
    }
    
    .top .input-group {
        width: 100%;
        max-width: 100%;
    }
    
    .top .input-group .form-control {
        height: 46px; /* Aumenta levemente a altura para melhor toque */
        font-size: 16px; /* Previne zoom automático no iOS */
    }
    
    .top .input-group .btn {
        height: 46px;
        padding: 0 1rem;
    }
    
    /* Ajusta os ícones de configuração e perfil para mobile */
    .settings-dropdown,
    .profile-dropdown {
        margin-top: 1rem;
    }
    
    /* Alinha os dropdowns no mobile */
    .col-lg-3.d-flex {
        justify-content: center;
    }
}

/* Media queries para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .top {
        height: auto;
        padding: 1.5rem 0;
    }
    
    .search-form {
        padding: 0 1rem;
    }
    
    .top .input-group {
        max-width: 100%;
    }
}

/* Ajustes específicos para o botão de busca em mobile */
@media (max-width: 767px) {
    .top .input-group .btn {
        white-space: nowrap;
        padding: 0 1rem;
    }
    
    .top .input-group .btn i {
        margin-right: 0.25rem;
    }
}