style.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. :root {
  2. --cor-primaria: #223567;
  3. --cor-secundaria: #C0B382;
  4. --cor-texto: #333333;
  5. --cor-fundo: #f5f5f5;
  6. }
  7. body,
  8. html {
  9. margin: 0;
  10. padding: 0;
  11. height: 100%;
  12. background-color: var(--cor-fundo);
  13. font-family: Arial, sans-serif;
  14. }
  15. /* Botão de abrir/fechar sidebar */
  16. .btn-sidebar-toggle {
  17. font-size: 30px;
  18. position: fixed;
  19. top: 20px;
  20. left: 20px;
  21. background-color: transparent;
  22. border: none;
  23. color: var(--cor-secundaria);
  24. cursor: pointer;
  25. z-index: 1001;
  26. transition: left 0.3s ease;
  27. }
  28. /* Sidebar personalizada */
  29. .sidebar-custom {
  30. width: 250px;
  31. height: 100vh;
  32. background-color: var(--cor-primaria);
  33. position: fixed;
  34. color: #ffffff;
  35. transition: transform 0.3s ease;
  36. transform: translateX(-100%);
  37. /* Sidebar começa oculta */
  38. padding-top: 60px;
  39. }
  40. /* Quando a sidebar estiver visível */
  41. .sidebar-custom.open {
  42. transform: translateX(0);
  43. }
  44. /* Quando a sidebar está aberta, o botão se move junto */
  45. .sidebar-custom.open ~ .btn-sidebar-toggle {
  46. left: 270px; /* 250px da sidebar + 20px de margem */
  47. }
  48. /* Estilização dos links da sidebar */
  49. .custom-link {
  50. color: #ffffff;
  51. text-decoration: none;
  52. display: block;
  53. margin-bottom: 15px;
  54. font-size: 1.1em;
  55. }
  56. .nav-link:hover {
  57. color: var(--cor-secundaria);
  58. }
  59. /* Conteúdo principal */
  60. .flex-grow-1 {
  61. margin-left: 0;
  62. }
  63. /* Para dispositivos menores */
  64. @media (max-width: 768px) {
  65. .flex-grow-1 {
  66. margin-left: 0;
  67. }
  68. }
  69. .container {
  70. margin-top: 30px;
  71. text-align: center;
  72. background-color: #ffffff;
  73. padding: 40px;
  74. border-radius: 10px;
  75. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  76. max-width: 600px;
  77. margin-left: auto;
  78. margin-right: auto;
  79. }
  80. h1 {
  81. margin-bottom: 20px;
  82. font-size: 2em;
  83. color: var(--cor-primaria);
  84. }
  85. .logo {
  86. width: 200px;
  87. margin-bottom: 20px;
  88. cursor: pointer;
  89. }
  90. .report-section {
  91. margin-top: 20px;
  92. }
  93. .report-section label {
  94. display: block;
  95. margin-bottom: 10px;
  96. font-size: 1.1em;
  97. }
  98. .report-section input {
  99. width: 100%;
  100. padding: 10px;
  101. margin-bottom: 20px;
  102. border: 1px solid #ccc;
  103. border-radius: 5px;
  104. }
  105. .report-section button {
  106. background-color: var(--cor-primaria);
  107. color: white;
  108. padding: 10px 20px;
  109. border: none;
  110. border-radius: 5px;
  111. cursor: pointer;
  112. transition: background-color 0.3s ease;
  113. }
  114. .report-section button:hover {
  115. background-color: var(--cor-secundaria);
  116. }
  117. /* Estilização do modal */
  118. .modal {
  119. display: none;
  120. position: fixed;
  121. z-index: 1002;
  122. left: 0;
  123. top: 0;
  124. width: 100%;
  125. height: 100%;
  126. background-color: rgba(0, 0, 0, 0.5);
  127. justify-content: center;
  128. align-items: center;
  129. }
  130. .modal-content {
  131. background-color: white;
  132. width: 90%;
  133. max-width: 80vw;
  134. max-height: 90vh;
  135. margin: auto;
  136. padding: 20px;
  137. position: relative;
  138. display: flex;
  139. flex-direction: column;
  140. border-radius: 10px;
  141. box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  142. overflow: auto;
  143. }
  144. /* Novo estilo para alinhar o conteúdo do modal à esquerda */
  145. .modal-content.text-left {
  146. text-align: left;
  147. }
  148. .modal-body-services {
  149. display: flex;
  150. flex-direction: column;
  151. align-items: center;
  152. justify-content: center;
  153. }
  154. .texto-modal-services {
  155. font-size: 16px;
  156. line-height: 1.6;
  157. margin-bottom: 20px;
  158. }
  159. /* Tela de login com fundo */
  160. .screen {
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. height: 100vh;
  165. background-color: var(--cor-fundo);
  166. }
  167. /* Caixa de login */
  168. .login-box {
  169. background-color: #ffffff;
  170. padding: 40px;
  171. border-radius: 10px;
  172. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  173. width: 100%;
  174. max-width: 400px;
  175. display: flex;
  176. flex-direction: column;
  177. align-items: stretch;
  178. }
  179. .login-box h2 {
  180. color: var(--cor-primaria);
  181. margin-bottom: 20px;
  182. text-align: center;
  183. }
  184. .login-box input {
  185. padding: 12px;
  186. font-size: 16px;
  187. border: 1px solid #ccc;
  188. border-radius: 5px;
  189. margin-bottom: 15px;
  190. }
  191. .login-box button {
  192. background-color: var(--cor-primaria);
  193. color: white;
  194. padding: 12px;
  195. border: none;
  196. border-radius: 5px;
  197. cursor: pointer;
  198. font-size: 16px;
  199. transition: background-color 0.3s ease;
  200. }
  201. .login-box button:hover {
  202. background-color: var(--cor-secundaria);
  203. }
  204. /* Mensagem de erro */
  205. .error {
  206. color: #dc3545;
  207. font-size: 14px;
  208. margin-top: 10px;
  209. text-align: center;
  210. }
  211. .hidden {
  212. display: none !important;
  213. }
  214. /* Centraliza a Logo */
  215. .logo {
  216. display: block;
  217. margin: 0 auto 20px auto;
  218. }
  219. .btn-close-modal {
  220. display: flex;
  221. align-items: center;
  222. justify-content: center;
  223. font-size: 1.25rem;
  224. font-weight: bold;
  225. width: 40px;
  226. height: 40px;
  227. background-color: #dc3545;
  228. color: #fff;
  229. border: none;
  230. border-radius: 0.375rem;
  231. cursor: pointer;
  232. transition: background-color 0.3s ease;
  233. }
  234. .btn-close-modal:hover {
  235. background-color: #bb2d3b;
  236. }
  237. /* Modificação para alinhar o texto do formulário no modal de inserção à esquerda */
  238. #inserirModal .modal-content {
  239. text-align: left;
  240. }
  241. .sidebar-custom {
  242. /* Adicione estas propriedades para que o posicionamento absoluto funcione */
  243. position: relative;
  244. /* Certifique-se de que a altura da sidebar é fixa ou 100vh para que o 'bottom: 0' funcione */
  245. height: 100vh;
  246. }
  247. .sidebar-bottom-logout {
  248. position: absolute;
  249. bottom: 20px; /* Ajuste este valor para dar um espaçamento da borda inferior */
  250. left: 20px; /* Ajuste este valor para alinhar com os outros links */
  251. width: calc(100% - 40px); /* Garante que o div ocupa a largura restante com padding */
  252. }