:root { --primary-font: "Cairo", sans-serif; --primary-color: #0074d9; --secondary-color: #0868ff; --button-hover: #0054de; --gold-color: #ffb830; --text-gray: #9193a8; --background: #d7dde5; --light-color: #f4f8fb; --animation-duration: 0.5s; } * { margin: 0; padding: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-style: normal; box-sizing: border-box; } body { height: 100vh; background: var(--background); font-family: "Roboto", sans-serif; } #warning { margin-bottom: 25px; color: red; font-size: 12px; } .loader-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--light-color); animation: fade-in 0.5s ease-in-out forwards; display: flex; justify-content: center; align-items: center; z-index: 1000; } .dual-ring { display: inline-block; width: 80px; height: 80px; } .dual-ring:after { content: " "; display: block; width: 64px; height: 64px; margin: 8px; border-radius: 50%; border: 6px solid var(--primary-color); border-color: var(--primary-color) transparent var(--primary-color) transparent; animation: dual-ring-spin var(--animation-duration) linear infinite; } @keyframes dual-ring-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Navbar */ .navbar { background: linear-gradient(to right, #1d4ed8, #1e40af); /* Blue gradient */ color: white; position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow */ } .navbar-container { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem; } .navbar-flex { display: flex; justify-content: space-between; align-items: center; } .navbar-left { display: flex; align-items: center; gap: 1rem; } .navbar-title { font-size: 1.5rem; font-weight: bold; letter-spacing: -0.05em; } .active-account { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: bold; background-color: rgba(59, 130, 246, 0.5); color: white; } .blue-text { color: #93c5fd; } .navbar-right { display: flex; align-items: center; gap: 1rem; } .navbar-link { background-color: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: bold; transition: background-color 0.2s; color: white; text-decoration: none; } .navbar-link:hover { background-color: rgba(255, 255, 255, 0.3); } .navbar-link i { margin-right: 0.5rem; } #mobileMenu { display: none; } .mobile-item { background-color: #3b82f6; padding: 1rem; margin-bottom: 15px; border-radius: 0.5rem; } .mobile-item a { font-weight: bold; color: white; text-decoration: none; } .mobile-item i { margin-right: 0.5rem; } /* Burger Button */ .burger-button { display: none; border-radius: 0.5rem; padding: 0.5rem; color: rgba(59, 130, 246, 0.7); font-weight: bold; background: transparent; border: none; } .burger-icon { height: 24px; width: 24px; } /* Media Queries */ @media (max-width: 767px) { .navbar-right { display: none; } .burger-button { display: block; } .mobile-menu { display: block; gap: 1rem; margin-top: 1rem; } } @media (min-width: 768px) { .hidden-md { display: none; } } .logo { width: 150px; } ul { list-style: none; /* display: block; */ } ul li a { text-decoration: none; color: white; padding: 8px 10px; border-radius: 7px; transition: all 0.3s ease; } ul li a:hover, ul li a.active { color: #fff; background: #007cff; } ul li a.active { padding: 10px; } #icon { background-color: #0075ff; padding: 5px 7px 3px 7px; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; } #icon svg { color: #fff; height: 28px; transition: all 0.3s ease; } #icon:hover { background: #fff; } #icon:hover svg { color: #0075ff; } #checkbox, #icon { display: none; } @media screen and (max-width: 768px) { ul li { padding: 10px 15px; display: grid; } ul li a { display: block; padding: 10px 0; } #icon { display: block; } body { overflow-y: auto; /* Default to allow scrolling */ } #checkbox:checked ~ ul { display: block; z-index: 99999; } #checkbox:checked ~ ul + .filter-options-container { display: block; } #checkbox:checked ~ body { overflow-y: hidden; /* Disable scrolling of the entire page */ } } .container { max-width: 600px; margin: 30px auto; background: #fff; padding: 15px 20px 2px 19px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h2 { color: var(--primary-color); margin-bottom: 20px; text-align: center; } .form-group { margin-bottom: 20px; } label { display: block; margin-bottom: 5px; font-weight: bold; } input[type="text"], textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; resize: vertical; } button[type="submit"] { background-color: var(--secondary-color); color: #fff; padding: 11px 30px; border: none; font-weight: bold; border-radius: 5px; cursor: pointer; position: relative; bottom: 15px; transition: background-color 0.3s ease, transform 0.2s ease; display: block; margin: 0 auto; } button[type="submit"]:hover { background-color: var(--button-hover); transform: translateY(-2px); } .container.locked { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #ffffff; /* Optional: Add background color */ padding: 22px 65px 22px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add box shadow */ max-width: 80%; /* Adjust the maximum width as needed */ } .container.locked img { max-width: 200px; /* Adjust image width as needed */ margin-bottom: 20px; /* Add some space between image and paragraph */ } .container.locked p { color: #0075ff; /* Adjust text color as needed */ font-weight: bold; font-size: 17px; } .avatar-container { position: relative; display: inline-block; } .avatar { width: 40px; cursor: pointer; height: 40px; border-radius: 50%; top: 10px; position: relative; } .active-indicator { position: absolute; bottom: -5px; right: -5px; width: 12px; height: 12px; background-color: #4caf50; /* Green color */ border-radius: 50%; animation: glow 1s infinite alternate; /* Glowing effect */ } @keyframes glow { 0% { box-shadow: 0 0 5px #4caf50; } 100% { box-shadow: 0 0 15px #4caf50; } } .username-box { position: absolute; cursor: pointer; bottom: -45px; left: -33px; background: var(--secondary-color); color: #fff; padding: 5px; border-radius: 5px; display: none; font-size: 15px; white-space: nowrap; /* Prevent text from wrapping */ overflow: hidden; /* Hide any overflow text */ text-overflow: ellipsis; /* Show ellipsis (...) if text overflows */ } @keyframes slide-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } } .avatar-container:hover .username-box { display: block; animation: slide-in 0.3s ease forwards; } .upload-box { position: relative; width: calc(20% - 10px); /* Adjust width as needed */ margin-right: 10px; /* Adjust margin as needed */ margin-bottom: 10px; /* Adjust margin as needed */ display: inline-block; } .upload-label { display: block; width: 100%; height: 100%; border: 2px dashed #ccc; border-radius: 10px; cursor: pointer; text-align: center; padding: 20px 0; } .plus-icon { font-size: 30px; color: #ccc; } .preview-image { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; } /* Media query for smaller screens */ @media screen and (max-width: 768px) { .upload-box { width: calc(33.33% - 10px); /* Adjust width for smaller screens */ margin-right: 5px; /* Adjust margin for smaller screens */ } .plus-icon { font-size: 16px; /* Adjust font size for smaller screens */ } .container.locked p { font-size: 14px; margin-bottom: 15px; } .form-group select { width: 50%; padding: 8px; border-radius: 5px; border: 1px solid #ccc; font-size: 16px; outline: none; } } /* Media query for even smaller screens */ @media screen and (max-width: 480px) { .upload-box { width: calc(50% - 10px); /* Adjust width for even smaller screens */ margin-right: 5px; /* Adjust margin for even smaller screens */ } } /* Optional: Style for the search input */ #categorySearch { width: 100%; padding: 8px; margin-bottom: 10px; } /* Optional: Style to show pointer cursor on input */ #categorySearch { cursor: pointer; } .form-group select { width: 100%; padding: 8px; border-radius: 5px; border: 1px solid #ccc; font-size: 16px; outline: none; } /* General focus styles */ input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus { box-shadow: 0 0 5px var(--secondary-color); outline: none; /* Remove default outline */ } input[type="text"]:focus + label, textarea:focus + label, select:focus + label { color: var(--secondary-color); /* Change label color when input is focused */ } /* Add a glow effect to the focused input */ input[type="text"]:focus, textarea:focus, select:focus { animation: glow-focus 1s infinite alternate; } .searchable-dropdown { position: relative; } .searchable-dropdown input { width: 100%; box-sizing: border-box; margin-bottom: 5px; } .searchable-dropdown select { width: 100%; max-height: 200px; overflow-y: auto; box-sizing: border-box; } #small-devices-li { display: inline-block; } @media screen and (max-width: 768px) { #small-devices-li { display: block; } }