/* ==============================
   Theme Variables (Default LEDANIM)
============================== */
:root{
    --primary-color: #003366;
    --primary-hover: #0055aa;
    --footer-bg: #003366;
    --footer-text: #ffffff;

    --btn-bg: #003366;
    --btn-hover: #0055aa;
}

/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

.menu {
    display: flex;
    gap: 15px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* User Info Bar */
.user-info-bar {
    background-color: #e0e0e0;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ccc;
}

.user-info span {
    font-weight: bold;
    color: var(--primary-color);
}

.user-info a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding: 5px;
    max-width: 98%;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.main-content p {
    font-size: 16px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: auto) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .user-info-bar {
        text-align: center;
    }

    .main-content {
        padding: 10px;
    }
}

/*for login page css*/

/* Login Container */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 50px auto;
    position: relative;
    top: 5vh;
    transform: translateY(0);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-container p {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
}

/* Error Message */
.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

/* Forgot Password Link */
.forgot-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.required {
    color: red;
    font-weight: bold;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* Set width and height for Select2 container to match other form fields */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 35px !important;
    font-size: 14px !important;
}

/* Apply styles for the search field inside the Select2 dropdown */
.select2-search__field {
    height: 35px !important;
    font-size: 14px !important;
}

/* Apply the same styling to standard select elements */
.select2-selection--single {
    height: 35px !important;
    font-size: 14px !important;
}

/* --- Responsive header/menu fixes --- */
.header { gap: 10px; }
.menu { flex-wrap: wrap; }

/* Tighter spacing as width reduces */
@media (max-width: 1280px) {
  .menu { gap: 10px; }
  .menu-item > a { padding: 8px 10px; font-size: 14px; }
}

/* Wrap to two lines if needed */
@media (max-width: 1024px) {
  .header { padding: 10px 12px; }
  .menu { gap: 8px; }
  .menu-item > a { padding: 8px 8px; }
}

/* Small screens: keep a single-line, scrollable top bar */
@media (max-width: 820px) {
  .menu { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 8px; }
  .menu::-webkit-scrollbar { height: 6px; }
  .menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 3px; }
  .menu-item { flex: 0 0 auto; }
  .menu-item > a { font-size: 13px; }
}

/* Right-edge protection by default for the last two menus */
.menu { position: relative; }
.menu-item:nth-last-child(-n+2) > .dropdown { right: 0; left: auto; }

/* NAV LOOK & FEEL REFINEMENT */
.menu a {
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  letter-spacing: .2px;
  transition: background .18s ease, transform .06s ease, color .18s ease;
}

.menu a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.menu a.is-active,
.menu a:focus-visible {
  background: rgba(255,255,255,.22);
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 0;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: #0a3d73;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  z-index: 1001;
}

.menu { position: relative; }
.menu-item:nth-last-child(-n+2) > .dropdown { right: 0; left: auto; }

.menu-item:hover > .dropdown { display: block; }

.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
}
.dropdown li a:hover {
  background: rgba(255,255,255,.12);
}

.user-info-bar {
  background: #eef3f9;
  border-bottom: 1px solid #d9e3f0;
}
.user-info-bar a { color: #0b64d8; }

.company-badge {
  padding:4px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:bold;
  color:white;
}
.company-ledanim { background:#1e66ff; }
.company-zpl { background:#16a34a; }
