fodase :)

meco meram, meco meram, meco meram
This commit is contained in:
2026-05-12 23:27:37 +00:00
parent 3ed2fcf0b7
commit b1dd3a8b01
82 changed files with 2932 additions and 1416 deletions
+304 -587
View File
@@ -1,587 +1,304 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: #f5f5f5;
}
/* HEADER */
#header {
width: 100%;
height: 50px;
position: fixed;
top: 0;
left: 0;
background: linear-gradient(to right, #c0392b, #114455);
display: flex;
align-items: center;
z-index: 10;
}
#title {
color: #fff;
padding-left: 20px;
font-size: 28px;
}
/* BARRA ESQUERDA */
#barraesquerda {
position: fixed;
top: 50px;
left: 0;
width: 320px;
height: calc(100vh - 50px);
background: #c0392b;
padding: 15px;
color: #fff;
display: flex;
flex-direction: column;
font-family: 'Inter', sans-serif;
overflow-y: auto;
}
#calendario {
margin-top: 10px;
}
.calendariotop {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
#mes {
font-size: 18px;
font-weight: 600;
}
#calendarseta {
display: flex;
gap: 15px;
}
#calendarseta button {
background: transparent;
border: none;
color: #fff;
font-size: 26px;
cursor: pointer;
padding: 5px 10px;
transition: transform 0.2s ease;
}
#calendarseta button:hover {
transform: scale(1.2);
}
.calendariodia {
width: 100%;
border-collapse: collapse;
}
.calendariodia th {
font-size: 11px;
opacity: 0.8;
}
.calendariodia td {
text-align: center;
padding: 6px;
font-size: 12px;
border-radius: 50%;
position: relative;
}
.calendariodia td::after {
content: "";
width: 5px;
height: 5px;
background: #fff;
border-radius: 50%;
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
}
.calendariodia td.today {
background: #114455;
color: #fff;
font-weight: 600;
}
.outromes {
opacity: 0.45;
}
/* AGENDA */
.agenda-header {
margin-top: 15px;
border-top: 1px solid rgba(255, 255, 255, 0.3);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding: 8px 0;
font-size: 13px;
}
.agenda-empty {
margin-top: 10px;
font-size: 13px;
opacity: 0.85;
}
.evento {
margin-top: 10px;
padding-left: 10px;
border-left: 3px solid #fff;
}
.evento.azul,
.calendar-event.azul {
border-color: #00c2ff;
}
.evento.verde,
.calendar-event.verde {
border-color: #2ecc71;
}
.evento.vermelho,
.calendar-event.vermelho {
border-color: #e74c3c;
}
.evento.roxo,
.calendar-event.roxo {
border-color: #9b59b6;
}
.evento.laranja,
.calendar-event.laranja {
border-color: #e67e22;
}
.evento.amarelo,
.calendar-event.amarelo {
border-color: #f1c40f;
}
.evento.rosa,
.calendar-event.rosa {
border-color: #ff6b81;
}
.evento.ciano,
.calendar-event.ciano {
border-color: #1abc9c;
}
.evento.marinho,
.calendar-event.marinho {
border-color: #2c3e50;
}
.evento.lilas,
.calendar-event.lilas {
border-color: #a29bfe;
}
.evento.salmao,
.calendar-event.salmao {
border-color: #fa8072;
}
.evento.menta,
.calendar-event.menta {
border-color: #55efc4;
}
.hora {
font-size: 11px;
opacity: 0.8;
}
.titulo {
font-size: 13px;
}
.link {
font-size: 11px;
color: #ffdede;
}
/* FERIADOS */
.feriados-header {
margin-top: 15px;
font-weight: 600;
}
.feriado {
display: flex;
gap: 8px;
margin-top: 8px;
font-size: 13px;
}
.dot {
width: 6px;
height: 6px;
background: #d4ff6a;
border-radius: 50%;
margin-top: 6px;
flex-shrink: 0;
}
/* MAIN */
.main {
margin-left: 320px;
margin-top: 50px;
min-height: calc(100vh - 50px);
display: flex;
flex-direction: column;
background: #f5f5f5;
}
/* TOPBAR */
.topbar {
min-height: 70px;
background: #eaeaea;
border-bottom: 3px solid #c0392b;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 25px;
gap: 12px;
}
.topbar h1 {
font-size: 24px;
color: #1f3b57;
}
.user-area {
display: flex;
align-items: center;
gap: 20px;
}
.perfil {
display: flex;
align-items: center;
gap: 10px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: url('https://i.pravatar.cc/100') center/cover;
}
.info {
display: flex;
flex-direction: column;
}
.nome {
font-weight: 600;
color: #1f3b57;
}
.cargo {
font-size: 12px;
color: #666;
}
.icone-img {
width: 20px;
height: 20px;
cursor: pointer;
object-fit: contain;
transition: transform 0.2s ease;
}
.icone-img:hover {
transform: scale(1.15);
}
/* HEADER CALENDARIO */
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 10px 20px;
background: #eee;
border-bottom: 1px solid #ccc;
}
.mes-nav {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: min(360px, 100%);
padding: 0 42px;
}
.titulo-mes {
font-size: 18px;
font-weight: 600;
color: #1f3b57;
text-align: center;
width: 100%;
}
.seta {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
font-size: 22px;
cursor: pointer;
color: #c0392b;
}
.antGrande {
left: 8px;
}
.proxGrande {
right: 8px;
}
.view-switch {
display: flex;
gap: 10px;
}
.view-switch button {
border: none;
padding: 6px 14px;
border-radius: 8px;
background: transparent;
cursor: pointer;
font-weight: 500;
color: #1f3b57;
}
.view-switch .active {
background: #c0392b;
color: #fff;
}
/* CALENDARIO GRANDE */
.calendar-area {
width: 100%;
}
.calendar-area.month-view {
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: 40px repeat(6, 120px);
}
.dia-semana {
background: #f0f0f0;
text-align: center;
font-weight: 600;
font-size: 13px;
padding: 10px 0;
border: 1px solid #ddd;
}
.dia-box {
background: #fff;
border: 1px solid #ddd;
padding: 8px;
color: #1f2937;
}
.dia-box:hover {
background: #eaeaff;
}
.dia-box.today {
background: #fff5f2;
border-color: #c0392b;
font-weight: 700;
color: #c0392b;
}
.outro-mes {
opacity: 0.45;
}
.calendar-area.week-view {
display: grid;
grid-template-columns: repeat(7, minmax(150px, 1fr));
gap: 0;
overflow-x: auto;
border-top: 1px solid #ddd;
}
.week-col {
min-height: 420px;
min-width: 150px;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background: #fff;
display: flex;
flex-direction: column;
}
.week-col.today {
background: #fffaf8;
}
.week-col-head {
padding: 10px;
font-size: 13px;
font-weight: 700;
color: #1f3b57;
text-align: center;
border-bottom: 1px solid #ddd;
background: #f6f6f6;
}
.week-col-date {
display: block;
margin-top: 4px;
font-size: 11px;
font-weight: 500;
color: #6b7280;
}
.week-events {
padding: 10px;
display: flex;
flex-direction: column;
gap: 8px;
}
.week-empty,
.day-empty {
font-size: 13px;
color: #6b7280;
}
.calendar-area.day-view {
display: block;
padding: 16px;
}
.day-panel {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
padding: 14px;
}
.day-panel-header {
font-size: 15px;
font-weight: 700;
color: #1f3b57;
margin-bottom: 12px;
}
.day-events {
display: flex;
flex-direction: column;
gap: 10px;
}
.calendar-event {
border-left: 3px solid #c0392b;
background: #fafafa;
border-radius: 6px;
padding: 8px 10px;
}
.calendar-event-hora {
font-size: 12px;
color: #6b7280;
}
.calendar-event-titulo {
font-size: 14px;
color: #1f2937;
margin-top: 2px;
}
/* RESPONSIVO */
@media (max-width: 1024px) {
body {
padding-top: 50px;
}
#barraesquerda {
position: static;
top: auto;
width: 100%;
height: auto;
max-height: none;
}
.main {
margin-left: 0;
margin-top: 0;
min-height: auto;
}
.calendar-area.month-view {
grid-template-rows: 40px repeat(6, 90px);
}
}
@media (max-width: 700px) {
#title {
font-size: 22px;
}
.topbar {
padding: 12px 16px;
flex-wrap: wrap;
}
.topbar h1 {
font-size: 20px;
}
.calendar-header {
flex-direction: column;
align-items: flex-start;
}
.mes-nav {
width: 100%;
}
.view-switch {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.calendar-area.month-view {
grid-template-rows: 36px repeat(6, 72px);
}
.dia-box {
padding: 6px;
font-size: 14px;
}
.week-col {
min-height: 320px;
}
.calendar-area.day-view {
padding: 12px;
}
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Poppins', sans-serif;
background: #f5f5f5;
}
/* ===== HEADER ===== */
#header {
width: 100%;
height: 50px;
position: fixed;
top: 0; left: 0;
background: linear-gradient(to right, #c0392b, #114455);
display: flex;
align-items: center;
z-index: 10;
}
#title {
padding-left: 20px;
font-size: clamp(22px, 5vw, 38px);
color: #fff;
}
/* ===== BARRA ESQUERDA ===== */
#barraesquerda {
position: fixed;
top: 50px; left: 0;
width: 280px;
height: calc(100vh - 50px);
background: #c0392b;
padding: 15px;
color: #fff;
display: flex;
flex-direction: column;
font-family: 'Inter', sans-serif;
overflow-y: auto;
z-index: 5;
}
/* Mini Calendário */
#calendario { margin-top: 10px; }
.calendariotop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#mes { font-size: 16px; font-weight: 600; }
#calendarseta { display: flex; gap: 10px; }
#calendarseta button { background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 2px 8px; transition: transform 0.2s; }
#calendarseta button:hover { transform: scale(1.2); }
.calendariodia { width: 100%; border-collapse: collapse; }
.calendariodia th { font-size: 10px; opacity: 0.8; padding: 3px; text-align: center; }
.calendariodia td { text-align: center; padding: 4px; font-size: 11px; border-radius: 50%; cursor: pointer; transition: background 0.15s; }
.calendariodia td:hover { background: rgba(255,255,255,0.2); }
.calendariodia td.outromes { opacity: 0.4; }
.calendariodia td.today { background: #fff; color: #c0392b; font-weight: 700; border-radius: 50%; }
.calendariodia td.selecionado { background: rgba(255,255,255,0.35); border-radius: 50%; }
/* Agenda */
#agenda { margin-top: 18px; }
.agenda-header { font-size: 12px; font-weight: 700; opacity: 0.8; margin-bottom: 8px; letter-spacing: 0.5px; }
.agenda-empty { font-size: 12px; opacity: 0.7; font-style: italic; }
.evento { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; transition: background 0.15s; }
.evento:hover { background: rgba(255,255,255,0.25); }
.evento .hora { font-size: 11px; opacity: 0.8; }
.evento .titulo { font-size: 13px; font-weight: 600; }
/* Feriados */
#feriados { margin-top: 16px; }
.feriados-header { font-size: 12px; font-weight: 700; opacity: 0.8; margin-bottom: 8px; letter-spacing: 0.5px; }
.feriado { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; flex-shrink: 0; }
/* ===== MAIN ===== */
.main {
margin-left: 280px;
margin-top: 50px;
padding: 24px;
min-height: calc(100vh - 50px);
}
/* Topbar */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar h1 { font-size: 24px; color: #1f2937; }
.user-area { display: flex; align-items: center; gap: 14px; }
.icone-img { width: 28px; height: 28px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.icone-img:hover { opacity: 1; }
.perfil { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #c0392b, #114455); }
.info { display: flex; flex-direction: column; }
.nome { font-size: 14px; font-weight: 600; color: #1f2937; }
.cargo { font-size: 12px; color: #6b7280; }
/* Botão logout */
#btnLogout {
background: transparent;
border: 1px solid #d1d5db;
border-radius: 6px;
padding: 6px 12px;
font-size: 13px;
cursor: pointer;
color: #6b7280;
transition: all 0.2s;
}
#btnLogout:hover { background: #fee2e2; border-color: #c0392b; color: #c0392b; }
/* Calendar header */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.mes-nav { display: flex; align-items: center; gap: 12px; }
.seta { background: transparent; border: 1px solid #d1d5db; border-radius: 6px; width: 32px; height: 32px; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.seta:hover { background: #f3f4f6; }
.titulo-mes { font-size: 18px; font-weight: 600; color: #1f2937; min-width: 200px; text-align: center; }
.view-switch { display: flex; gap: 4px; background: #f3f4f6; padding: 4px; border-radius: 8px; }
.view-switch button { border: none; background: transparent; padding: 6px 14px; border-radius: 6px; font-size: 14px; cursor: pointer; color: #6b7280; transition: all 0.2s; font-family: inherit; }
.view-switch button.active { background: #fff; color: #1f2937; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
/* Botão novo evento */
#btnNovoEvento {
background: #c0392b;
color: #fff;
border: none;
border-radius: 8px;
padding: 8px 18px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
font-family: inherit;
}
#btnNovoEvento:hover { background: #a03224; }
/* Calendar area */
.calendar-area { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; }
/* Month view */
.month-view { display: grid; grid-template-columns: repeat(7, 1fr); }
.dia-semana { text-align: center; padding: 10px; font-size: 12px; font-weight: 600; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.dia-box { min-height: 100px; padding: 8px; border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.1s; }
.dia-box:hover { background: #fef2f2; }
.dia-box:nth-child(7n) { border-right: none; }
.dia-box.outro-mes { background: #fafafa; color: #d1d5db; }
.dia-box.outro-mes .num-dia { color: #d1d5db; }
.num-dia { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.dia-box.today .num-dia { background: #c0392b; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.dia-box.selecionado { background: #fef2f2; }
.evento-mini { font-size: 10px; background: #c0392b; color: #fff; border-radius: 3px; padding: 1px 4px; margin-top: 2px; truncate: clip; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evento-mini.verde { background: #16a34a; }
.evento-mini.azul { background: #1d4ed8; }
.evento-mini.amarelo { background: #d97706; }
.mais-eventos { font-size: 10px; color: #6b7280; margin-top: 2px; cursor: pointer; }
/* Week view */
.week-view { display: grid; grid-template-columns: repeat(7, 1fr); }
.week-col { border-right: 1px solid #e5e7eb; padding: 10px 8px; min-height: 300px; }
.week-col:last-child { border-right: none; }
.week-col.today { background: #fef9f9; }
.week-col-head { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
.week-col-date { display: block; font-size: 11px; font-weight: 400; color: #9ca3af; }
.week-events { display: flex; flex-direction: column; gap: 6px; }
.week-empty { font-size: 11px; color: #d1d5db; font-style: italic; }
/* Day view */
.day-panel { padding: 20px; }
.day-panel-header { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 16px; }
.day-events { display: flex; flex-direction: column; gap: 10px; }
.day-empty { color: #9ca3af; font-style: italic; font-size: 14px; }
/* Event cards */
.calendar-event { border-radius: 6px; padding: 8px 10px; background: #fee2e2; border-left: 4px solid #c0392b; }
.calendar-event.verde { background: #d1fae5; border-color: #16a34a; }
.calendar-event.azul { background: #dbeafe; border-color: #1d4ed8; }
.calendar-event.amarelo { background: #fef3c7; border-color: #d97706; }
.calendar-event.rosa { background: #fce7f3; border-color: #db2777; }
.calendar-event-hora { font-size: 11px; color: #6b7280; }
.calendar-event-titulo { font-size: 13px; font-weight: 600; color: #1f2937; }
/* ===== LOADING SPINNER ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: #9ca3af; gap: 10px; font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 2px solid #e5e7eb; border-top-color: #c0392b; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ===== MODAL ===== */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 100;
align-items: center;
justify-content: center;
}
.modal-overlay.aberto { display: flex; }
.modal {
background: #fff;
border-radius: 12px;
padding: 28px;
width: 100%;
max-width: 480px;
margin: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.2);
max-height: 90vh;
overflow-y: auto;
}
.modal-titulo { font-size: 18px; font-weight: 700; color: #1f2937; margin-bottom: 20px; }
.modal-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal-campo label { font-size: 13px; font-weight: 600; color: #374151; }
.modal-campo input,
.modal-campo select,
.modal-campo textarea {
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 10px 12px;
font-size: 14px;
font-family: inherit;
transition: border-color 0.2s;
background: #fff;
}
.modal-campo input:focus,
.modal-campo select:focus,
.modal-campo textarea:focus {
outline: none;
border-color: #c0392b;
}
.modal-campo textarea { resize: vertical; min-height: 70px; }
.modal-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-secundario {
background: transparent;
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 9px 18px;
font-size: 14px;
cursor: pointer;
color: #6b7280;
font-family: inherit;
transition: all 0.2s;
}
.btn-secundario:hover { background: #f3f4f6; }
.btn-primario {
background: #c0392b;
color: #fff;
border: none;
border-radius: 8px;
padding: 9px 18px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: background 0.2s;
}
.btn-primario:hover { background: #a03224; }
.btn-primario:disabled { background: #ccc; cursor: not-allowed; }
.btn-perigo {
background: transparent;
border: 1px solid #fca5a5;
color: #c0392b;
border-radius: 8px;
padding: 9px 18px;
font-size: 14px;
cursor: pointer;
font-family: inherit;
transition: all 0.2s;
margin-right: auto;
}
.btn-perigo:hover { background: #fee2e2; }
/* Toast de feedback */
#toast {
position: fixed;
bottom: 24px;
right: 24px;
background: #1f2937;
color: #fff;
padding: 12px 18px;
border-radius: 8px;
font-size: 14px;
z-index: 200;
transform: translateY(80px);
opacity: 0;
transition: all 0.3s;
max-width: 320px;
}
#toast.visivel { transform: translateY(0); opacity: 1; }
#toast.sucesso { background: #065f46; }
#toast.erro { background: #b91c1c; }
/* Responsivo */
@media (max-width: 768px) {
#barraesquerda { display: none; }
.main { margin-left: 0; }
.month-view { font-size: 12px; }
.dia-box { min-height: 60px; padding: 4px; }
}