/* General body styling */ body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; z-index: 1000; } /* Boss Menu Container */ #bossMenu { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; } /* Content sections */ .main-content { padding: 20px; flex-grow: 1; color: #ecf0f1; background-color: #1F2937; border-radius: 12px; } /* Menu Container */ .menu-container { display: flex; background-color: #1F2937; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; width: 80%; height: 80%; position: relative; /* Dette gør .content-section til referencepunkt for absolut positionering */ } /* Sidebar styling */ .side-menu { background-color: #111827; color: #ecf0f1; width: 60px; /* Start width */ border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 20px; transition: width 0.3s ease-in-out; /* Smooth transition for expanding */ } /* Sidebar expands on hover */ .side-menu:hover { width: 200px; /* Expand width on hover */ } /* Sidebar buttons */ .side-menu button { background-color: #1F2937; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; display: flex; align-items: center; gap: 10px; justify-content: start; } /* Hover effect for buttons */ .side-menu button:hover { background-color: #1C64F2; /* Change to a lighter shade on hover */ transform: scale(1.05); /* Slight scale up on hover */ } /* Ensuring icons do not shrink */ .side-menu button i { font-size: 20px; transition: transform 0.3s ease; /* Ensure icons scale smoothly */ } /* Preventing icons from shrinking on hover */ .side-menu button:hover i { transform: scale(1); /* No size change on hover */ } /* Initially, hide the text inside buttons */ .side-menu button span { opacity: 0; /* Initially hide text */ transform: translateX(-20px); /* Position text off-screen */ transition: opacity 0.4s ease, transform 0.4s ease; /* Smooth transition for text */ white-space: nowrap; /* Prevent text from wrapping */ overflow: hidden; } /* Show text when sidebar is hovered */ .side-menu:hover button span { opacity: 1; transform: translateX(0); /* Slide text in smoothly */ } /* Close Button */ .close-btn { background-color: transparent; font-size: 30px; padding: 10px; border: none; cursor: pointer; position: absolute; bottom: 20px; /* Placer knappen i bunden af side-menu */ left: 25px; /* Justér knappen til venstre */ z-index: 999; } /* Font Awesome icon for close button */ .close-btn i { color: rgb(209, 26, 26); /* Sikrer, at ikonet er rødt */ } /* Content section hidden initially */ .content-section { display: none; } /* Show content section when active */ .content-section.active { display: block; } /* Optional: Styling for the header in the sidebar */ .side-menu-header { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 20px; text-align: center; } /* Scrollbar styling for the main content */ .main-content { overflow-y: auto; max-height: 100%; } /* Styling for the content sections */ .content-section { display: none; font-size: 16px; line-height: 1.6; padding: 20px; border-radius: 10px; background-color: #111827; margin-top: 20px; } .content-section:not(.hidden) { display: block; } /* Hover and active effects for the sections */ .content-section:hover { background-color: #111827; transition: background-color 0.3s ease; } /* Small footer text */ .footer-text { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #7f8c8d; font-weight: 300; opacity: 0.8; z-index: 1; } /* Generel styling */ /* Generel styling */ .content-section { display: none; padding: 20px; color: #fff; font-family: Arial, sans-serif; } .welcome-title { font-size: 24px; font-weight: bold; font-style: italic; margin-bottom: 20px; } /* Job info container styling */ .job-info-container { display: flex; align-items: center; background-color: #1F2937; padding: 20px; border-radius: 10px; gap: 20px; } .circle-logo { width: 200px; /* Større logo */ height: 200px; border-radius: 50%; border: 0px solid #fff; object-fit: cover; } .job-details { display: flex; flex-direction: column; gap: 10px; } .job-details #jobTitle { position: relative; padding-left: -1em; /* Plads til ikonet og prikken */ font-size: 70px; /* Meget større skrift til jobnavn */ font-weight: bold; color: #ffffff; } .job-details #jobTitle::before { content: '\f0b1 • '; /* Font Awesome-ikon + prik */ font-family: 'Font Awesome 5 Free'; /* Font Awesome bruges */ position: relative; left: 150; /* Placering af før-elementet */ color: #ffffff; /* Farve på ikonet */ font-size: 3.5rem; /* Match med tekstens størrelse */ } .job-number { font-size: 24px; font-weight: bold; color: #fff; } /* Statistik container styling */ .stats-container { display: flex; justify-content: space-around; margin-top: 20px; padding: 10px; background-color: #1F2937; border-radius: 10px; } .stat-box { text-align: center; font-size: 30px; font-family: 'Poppins', sans-serif; color: #fff; } .stat-box p { font-size: 19px; margin-bottom: 0px; } .stat-box span { font-size: 25px; font-weight: bold; color: #fff; font-family: 'Poppins', sans-serif; } .logo-link-container { margin-top: 20px; text-align: center; font-family: 'Poppins', sans-serif; } .logo-link-container label { display: block; margin-bottom: 5px; font-size: 15px; color: #fff; font-family: 'Poppins', sans-serif; } #logoURL { width: 80%; padding: 8px; border-radius: 5px; border: 1px solid #1F2937; font-size: 13px; text-align: center; background-color: #1F2937; /* Grå baggrund */ color: #fff; /* Hvid tekstfarve */ font-family: 'Poppins', sans-serif; } .section-title { font-size: 24px; margin-bottom: 20px; } .hire-section { display: flex; align-items: center; margin-bottom: 20px; } .input-field { width: 60px; padding: 10.5px; border-radius: 5px; border: 1px solid #fff; margin-right: 10px; text-align: center; font-size: 16px; } .hire-btn { padding: 8px 16px; background-color: #1C64F2; color: white; border: none; border-radius: 5px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 16px; /* Mindre skrifttype for at reducere størrelsen */ } .hire-btn:hover { background-color: #0084ff; transform: scale(1.05); } .employee-list-header { display: flex; justify-content: space-between; font-weight: bold; font-size: 25px; margin-bottom: -10px; } .employee-list { background-color: #1F2937; border-radius: 8px; padding: 10px; } .employee-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 4px solid #111827; } .employee-row:first-child { border-top: none; } .employee-name { flex: 1; font-size: 25px; } .employee-grade { display: flex; align-items: center; } .grade-select { padding: 7px 13px; margin-right: 10px; border-radius: 5px; font-size: 16px; /* Mindre skrifttype for at reducere størrelsen */ font-family: 'Poppins', sans-serif; } .fire-btn { padding: 7px 13px; background-color: #b33a3a; color: white; border: none; border-radius: 5px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 16px; /* Mindre skrifttype for at reducere størrelsen */ } .fire-btn:hover { background-color: #ca2a2a; transform: scale(1.05); } .fireConfirmText { font-family: 'Poppins', sans-serif; } /* Popup overlay */ .popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } /* Popup content */ .popup-content { background: #1F2937; padding: 20px; border-radius: 8px; text-align: center; color: white; width: 300px; } .confirm-btn, .cancel-btn { margin: 10px; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-family: 'Poppins', sans-serif; } .confirm-btn { background-color: #d9534f; /* Rød for bekræftelse */ color: white; } .cancel-btn { background-color: #111827; /* Blå for annullering */ color: white; } .hidden { display: none; } /* Section Title */ .section-title { font-size: 35px; font-weight: bold; margin-bottom: 2px; color: #fff; } /* Balance Title */ .balance-title { font-size: 20px; margin-bottom: 15px; color: #ccc; } /* Account Actions */ .account-actions { display: flex; flex-direction: column; align-items: center; } /* Amount Input */ #amountInput { padding: 8px; font-size: 16px; margin-bottom: 10px; width: 100%; max-width: 200px; border: 1px solid #1F2937; border-radius: 5px; background-color: #1F2937; color: #fff; font-family: 'Poppins', sans-serif; } /* Button Container */ .button-container { display: flex; gap: 10px; } /* Action Buttons */ .action-btn { padding: 10px 20px; font-size: 16px; border: none; border-radius: 5px; cursor: pointer; color: white; } .withdraw-btn { background-color: #b33a3a; /* Rød for hævning */ font-family: 'Poppins', sans-serif; } .withdraw-btn:hover { background-color: #ca2a2a; transform: scale(1.05); } .deposit-btn { background-color: #3ab34a; /* Grøn for indbetaling */ font-family: 'Poppins', sans-serif; } .deposit-btn:hover { background-color: #15c72d; transform: scale(1.05); } .refresh-btn { padding: 8px; background-color: #1C64F2; color: white; border: none; border-radius: 5px; cursor: pointer; position: absolute; align-items: center; top: 740px; /* Juster afstand fra toppen */ right: 1470px; /* Juster afstand fra højre */ width: 35px; /* Størrelse på knappen */ height: 35px; /* Firkantet */ font-size: 18px; /* Størrelse på ikonet */ transition: background-color 0.3s ease, transform 0.2s ease; } .refresh-btn:hover { background-color: #174ebd; transform: scale(1.1); } .refresh-btn:active { background-color: #123a94; transform: scale(0.95); } /* Sektion for rangeringsindstillinger */ .rank-section { display: flex; align-items: center; margin-bottom: 20px; } .add-rank-btn { padding: 8px 16px; background-color: #3ab34a; color: white; border: none; border-radius: 5px; cursor: pointer; font-family: 'Poppins', sans-serif; } .add-rank-btn:hover { background-color: #15c72d; transform: scale(1.05); } /* Rank liste overskrifter */ .rank-list-header { display: flex; justify-content: space-between; font-weight: bold; font-size: 25px; margin-bottom: -10px; } .rank-list { background-color: #1F2937; border-radius: 8px; padding: 10px; } .rank-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 4px solid #111827; } .rank-row:first-child { border-top: none; } .rank-name { flex: 1; font-size: 25px; color: #fff; } .rank-actions { display: flex; gap: 10px; } .edit-btn, .delete-btn { padding: 10px 23px; border: none; border-radius: 5px; font-size: 16px; font-family: 'Poppins', sans-serif; cursor: pointer; } .edit-btn { background-color: #1C64F2; color: white; } /* Sidebar expands on hover */ .edit-btn:hover { background-color: #0084ff; transform: scale(1.05); } .delete-btn { background-color: #b33a3a; color: white; } /* Sidebar expands on hover */ .delete-btn:hover { background-color: #ca2a2a; transform: scale(1.05); } /* Notification Container */ #notifications-container { position: absolute; top: var(--notification-top, 10px); /* Brug CSS variabel til top position */ right: var(--notification-right, 10px); /* Brug CSS variabel til højre position */ bottom: var(--notification-bottom, auto); /* Brug CSS variabel til bundposition */ left: var(--notification-left, auto); /* Brug CSS variabel til venstre position */ z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; visibility: visible; } .notification { color: #fff; /* Sørg for at teksten er synlig på en farvet baggrund */ padding: 15px; border-radius: 5px; margin-bottom: 10px; display: flex; align-items: center; opacity: 0; /* Start with notification hidden */ transform: translateY(20px); /* Slightly translate it to give a slide effect */ transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Smooth animation for both opacity and sliding effect */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); } .notification .notification-icon { margin-right: 10px; font-size: 20px; } /* Keyframes for bounce effect */ @keyframes bounce { 0% { transform: translateY(0); } 25% { transform: translateY(-5px); } 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } 100% { transform: translateY(0); } } /* For smooth positioning and transition */ @keyframes slideIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes slideOut { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(20px); } } /* Grundlæggende styling for dropdown menu */ .grade-select { width: 100%; /* Fuld bredde for dropdown */ padding: 8px 12px; /* Mindre polstring for at gøre boksen mindre */ font-size: 16px; /* Mindre skrifttype for at reducere størrelsen */ border: 2px solid #1F2937; /* Mørk kant for dark mode */ border-radius: 12px; /* Rundere kanter for et blødere look */ background-color: #111827; /* Mørk baggrund for dark mode */ color: #fff; /* Lys tekstfarve for bedre kontrast i dark mode */ appearance: none; /* Fjern standardpil fra browser */ -webkit-appearance: none; /* Fjern iOS standardpil */ -moz-appearance: none; /* Fjern Firefox standardpil */ outline: none; /* Fjern fokusramme */ cursor: pointer; /* Hånd-ikon når brugeren interagerer */ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Let skygge for at få dropdown til at hæve sig */ transition: all 0.3s ease-in-out; /* Glidende overgang ved interaktion */ font-family: 'Poppins', sans-serif; } /* Fokus tilstand for dropdown */ .grade-select:focus { border-color: #007bff; /* Blå kant ved fokus */ background-color: #1F2937; /* Mørkere baggrund ved fokus */ box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Skaber en smuk blå glød omkring dropdown */ } /* Styling for første option, der er en placeholder */ .grade-select option:first-child { color: #888; /* Grå farve for "Ændre Rangering" */ font-style: italic; /* Gør teksten kursiv for at indikere, at det er en placeholder */ } /* Styling af dropdown pilen (moderne pil) */ .grade-select-wrapper { position: relative; width: 100%; } .grade-select-wrapper:after { content: '▼'; /* Pil-tegn */ position: absolute; right: 12px; /* Pilen placeres til højre */ top: 50%; /* Centreret lodret */ transform: translateY(-50%); /* Justerer pilen for at gøre den centreret */ color: #fff; /* Lys pilfarve til dark mode */ font-size: 16px; /* Større pil */ pointer-events: none; /* Sørger for at pilen ikke fjerner interaktion med dropdown */ transition: color 0.3s ease-in-out; /* Glidende farveændring */ } /* Ændring af pilens farve ved fokus */ .grade-select:focus + .grade-select-wrapper:after { color: #007bff; /* Pilen skifter til blå ved fokus */ } /* Animationssmoothness ved åbning af dropdown */ .grade-select option { transition: all 0.2s ease; /* Glat overgang for når en option vælges */ } /* Drop-down menuen under menuens åbning */ .grade-select-wrapper { position: relative; width: 100%; } .grade-select-wrapper select { opacity: 0; transition: opacity 0.5s ease-in-out; } .grade-select-wrapper select.open { opacity: 1; } /* Hover-effekt på options for bedre interaktivitet */ .grade-select option:hover { background-color: #1F2937; /* Mørk baggrund på hover */ color: #007bff; /* Blå tekstfarve ved hover */ cursor: pointer; /* Pil-ikon på hover */ } .add-rank-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #111827; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000; border-radius: 5px; /* Blødere hjørner */ display: flex; flex-direction: column; gap: 15px; border: 2px solid #ccc; width: 330px; /* Gør boksen smallere */ font-size: 25px; /* Tilføj centrering */ justify-content: center; /* Vertikal centrering */ align-items: center; /* Horisontal centrering */ text-align: center; /* Centrer tekst */ } .add-rank-popup.hidden { display: none; } .add-rank-popup-content h2 { margin: 0; font-size: 25px; color: white; /* Sørg for tekstkontrast */ } /* Generel styling for form-gruppen */ .add-rank-popup-content .form-group { display: flex; flex-direction: column; /* Sørger for, at label og input vises vertikalt */ margin-bottom: 15px; /* Adskiller felterne lidt */ } .add-rank-popup-content .form-group label { margin-bottom: 5px; /* Adskiller label fra inputfelt */ font-weight: bold; /* Fremhæver teksten */ font-size: 20px; color: #f9f9f9; /* Kontrast til mørk baggrund */ } .add-rank-popup-content .form-group input { width: 250px; /* Gør inputfeltet kortere */ padding: 9px; border: 1px solid #ccc; border-radius: 3px; font-size: 14px; background: #fff; color: #000; } /* Justér popup-knapper */ .add-rank-popup-content .popup-buttons { display: flex; justify-content: space-between; /* Placerer knapperne på hver side */ margin-top: 10px; } .add-rank-popup-content .popup-buttons button { padding: 8px 15px; border: none; border-radius: 3px; font-size: 14px; cursor: pointer; font-family: 'Poppins', sans-serif; } .add-rank-popup-content .popup-buttons button#cancelRankBtn { background-color: #d9534f; /* Rød for fortryd */ color: white; } .add-rank-popup-content .popup-buttons button#createRankBtn { background-color: #5cb85c; /* Grøn for opret */ color: white; } .add-rank-popup-content .popup-buttons button#createRankBtn:hover { background-color: #15c72d; transform: scale(1.05); } .add-rank-popup-content .popup-buttons button#cancelRankBtn:hover { background-color: #ca2a2a; transform: scale(1.05); } /* Overlay for at dæmpe baggrunden */ .overlay { position: fixed; /* Dækker hele skærmen */ top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); /* Farve med gennemsigtighed */ z-index: 999; /* Sørger for, at overlay'et er under popupen */ display: none; /* Skjul overlay som standard */ } /* Når overlayet vises */ .overlay.visible { display: block; } /* Styling for log tabs */ .log-tabs { display: flex; gap: 10px; margin-bottom: 20px; } .tab-btn { background-color: #1F2937; color: #fff; padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; font-family: 'Poppins', sans-serif; font-weight: bold; } .tab-btn.active { background-color: #1C64F2; } .tab-btn:hover { background-color: #3B82F6; } /* Styling for log content */ .log-content { display: none; } .log-content:not(.hidden) { display: block; } /* Styling for log rows */ .log-row { margin-bottom: 15px; border-bottom: 6px solid #1F2937; /* Valgfrit: adskiller log entries */ padding-bottom: 10px; display: flex; flex-direction: column; /* Gør rækken vertikal */ gap: 3px; /* Mellemrum mellem de forskellige sektioner */ } /* Styling for log header (som indeholder ikon og dato) */ .log-header { display: flex; align-items: center; gap: 10px; /* Giver lidt afstand mellem ikon og dato */ font-size: 17px; } /* Styling for ikonet */ .log-header i { font-size: 26px; /* Justeret størrelse på ikonet */ margin: 0; /* Fjern margin mellem ikon og dato */ } /* Specifik styling for indsætning (grøn) */ .icon-green { color: #42ca42; } /* Specifik styling for udtag (rød) */ .icon-red { color: #d81919; } /* Blå farve til opdatering */ .icon-blue { color: #3B82F6; /* Eller en hex-værdi som #007bff */ } /* Styling for datoen */ .log-date { font-weight: bold; color: #ffffff; /* Gør datoen mere fremtrædende */ font-family: 'Poppins', sans-serif; font-size: 17px; } /* Styling for detaljerne (nu under datoen) */ .log-detail { color: #ffffff; /* Neutral farve for tekst */ font-size: 17px; line-height: 1.5; font-family: 'Poppins', sans-serif; }