/* Importando a fonte Sofia Pro */
@font-face {
    font-family: 'Sofia Pro';
    src: url('/assets/fonts/SofiaPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Sofia Pro';
    src: url('/assets/fonts/SofiaPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Definindo variáveis de cores e estilos */
:root {
    --primary-color: #0f1923; /* Cor de fundo de todas as telas */
    --secondary-color: #1a242d; /* Cor secundária para cards, modals e outros */
    --accent-color: #ffffff; /* Cor dos textos principais */
    --text-color: #ffffff; /* Cor da fonte */
    --highlight-color: #ff4657; /* Cor de destaque para botões e valores */
    --navbar-bg: #1a242d; /* Cor do fundo da navbar */
    --sidebar-bg: #1a242d; /* Cor da sidebar */
    --card-bg-color: #1a242d; /* Cor de fundo dos cards */
    --font-family: 'Sofia Pro', Arial, sans-serif; /* Fonte principal */
    --input-bg-color: #1a242d; /* Fundo dos inputs */
    --input-border-color: #5a6e7f; /* Cor da borda dos inputs */
}

/* Estilo Geral do Corpo */
body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
}

/* Estilo da Sidebar */
.sidebar {
    width: 220px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar .logo img {
    width: 100px;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    margin: 15px 0;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: var(--highlight-color);
}

.sidebar a i {
    margin-right: 10px;
}

/* Conteúdo Principal */
.main-content {
    margin-left: 240px;
    padding: 20px;
    flex-grow: 1;
}

/* Navbar */
.navbar {
    height: 60px;
    background-color: var(--navbar-bg);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .welcome-text {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-left: 80px;
}

#criarServicoBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#criarServicoBtn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal form {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    color: var(--text-color);
}

/* Etiqueta de Tipo de Serviço */
.tipo-servico-label {
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9em;
    margin-right: 15px;
}

.tipo-servico-label.elojob {
    background-color: #fff;
  width: 56px;
  color: #111;
}

.tipo-servico-label.duoboost {
    background-color: #e67e22; /* Laranja para DuoBoost */
}

/* Estilo dos Cards de Serviço */
.servico-card {
    display: flex;
  padding: 20px;
  margin: 20px 0;
  border-radius: 100px;
  background-color: var(--card-bg-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servico-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    margin-inline: 20px;
}

.servico-card-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #25d900;
    margin-left: 200px;
}

.servico-card-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 150px;
}

.rank-info p {
    margin: 5px 0;
    font-weight: bold;
}

.servico-card-details p {
    margin: 5px 0;
    font-size: 0.9em;
    color: var(--accent-color);
}

.servico-card-actions {
display: flex;
  justify-content: center;
  margin-left: 121px;
  margin-bottom: 44px;
  margin-top: 44px;
}

/* Botões do Card */
button.card-action {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
      font-weight: Bold;
}

button.card-action:hover {
    background-color: #c0392b;
}

/* Inputs de Formulário */
form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="email"],
form select,
form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

form button[type="submit"] {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #c0392b;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    background-color: var(--accent-color);
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: var(--highlight-color);
}

.pagination .active {
    background-color: var(--highlight-color);
}

.fa-spinner::before {
  content: "\f110";
  font-size: 34px;
  color: white;
}
