html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.login-body {
    background-color: #f8f9fb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-header img.login-logo {
    height: 50px;
    margin-bottom: 15px;
}

.login-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.login-header p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
}

.login-card form {
    text-align: left;
    margin : 30px 0;
    margin-top: 25px;
}

.login-card label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 7px;
    margin-top: 6px;
    margin-bottom: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* key to vertical centering */
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: regular;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: regular;
}

.forgot-password {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    margin: 0;
}

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



.login-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 8px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
}

.login-button:hover {
    background-color: #1d4ed8;
}

.login-footer {
    font-size: 13px;
}

.login-footer a {
    color: #6b21a8;
    font-weight: 500;
    text-decoration: none;
}
.login-footer a:hover {
    text-decoration: underline;
}
.login-card input[type="email"] {
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    width: 100%;
}

.confirmation-card {
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.checkmark {
    font-size: 28px;
    color: #b8ffb8; /* Light green for contrast */
    font-weight: bold;
    line-height: 1;
}

.confirmation-logo {
    height: 50px;
    margin-bottom: 20px;
}

.confirmation-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #17df17; /* Dark green */
    border-radius: 50%;
    margin: 0 auto 20px;
}

.confirmation-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.confirmation-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.confirmation-button {
    display: inline-block;
    padding: 4px 60px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
}

.confirmation-button:hover {
    background-color: #1d4ed8;
}
.dashboard-body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fb;
    color: #222;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004080;
    color: #fff;
    padding: 10px 20px;
}

.company-logo {
    height: 40px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.header-right a:hover {
    text-decoration: underline;
}

/* Main Section */
.dashboard-main {
    padding: 30px;
}

.employee-details {
    list-style: none;
    padding: 0;
}

.employee-details li {
    margin-bottom: 10px;
}

.change-password-body {
    background-color: #f5f6fa;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 00px;
}

.change-password-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Heading */
.change-password-card .title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.change-password-card .subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

/* Form fields */
.change-password-card form {
    display: flex;
    flex-direction: column;
}

/* Fix Django's label/input <p> spacing */
.change-password-card form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.change-password-card form label {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

.change-password-card input[type="password"] {
    padding: 7px 5px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    outline: none;
    transition: border-color 0.2s ease;
}

.change-password-card input[type="password"]:focus {
    border-color: #2563eb;
}

/* Help text */
.change-password-card form ul {
    margin-top: 4px;
    margin-left: 25px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    list-style-type: disc;
}

/* Submit button */
.login-button {
    background-color: #2563eb;
    color: #fff;
    padding: 8px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #1d4ed8;
}


.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    height: 7%;
    width: 80%;
    object-fit: contain;
}

a.logout-button {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

a.logout-button:hover {
    background-color: #1d4ed8;
}




.employee-info-card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    margin: auto;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
}

.employee-table th,
.employee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.edit-button {
    margin-top: 20px;
    display: inline-block;
    padding: 8px 16px;
    background-color: #0066ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
.edit-button:hover {
    background-color: #004ec2;
}

.dashboard-header {
            background-color: #eead5e;
            color: white;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

.dashboard-header .left {
            display: flex;
            align-items: center;
        }

.dashboard-header .left img {
            height: 40px;
            margin-right: 15px;
        }

.dashboard-header .right a {
            color: #fff;
            margin-left: 20px;
            text-decoration: none;
            font-weight: bold;
        }

body {
    background-color: #f4f4f9;
    color: #1f2937;
    font-family: 'Segoe UI', sans-serif;
}

.table-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.back-button {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.search-actions input,
.search-actions select,
.search-actions button {
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    font-size: 0.9rem;
}

.search-actions input:focus,
.search-actions select:focus {
    outline: none;
    border-color: #2563eb;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.styled-table th,
.styled-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.styled-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    display: inline-block;
}

.status-pill.active {
    background-color: #10b981;
}

.edit-link {
    color: #2563eb;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
}

.delete-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

/* 🌙 Auto Dark Mode Based on System Settings */
@media (prefers-color-scheme: dark) {

  body, .login-body {
    background-color: #1f1e1e;
    color: #f0f0f0;
  }

  .login-card,
  .footer,
  .header,
  .nav-bar {
    background-color: #323030;
    color: #f2f2f2;
  }

  .login-card input[type="text"],
    .login-card input[type="email"],
  .login-card input[type="password"],
  .search-box {
    background-color: #2a2a2a;
    color: #f0f0f0;
    border: 1px solid #444;
  }

  .login-card input::placeholder {
    color: #bbb;
  }

  .login-button {
    background-color:  #525253;
    color: rgb(255, 255, 255);
  }

  .login-button:hover {
    background-color: #3d3d3e;
  }

  .nav-links li a,
  .login-footer a,
  .forgot-password,
  .footer a {
    color: #ffffff;
  }

  .footer {
    border-top: 1px solid #444;
  }
  }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .confirmation-card {
        background-color:  #323030;
        color: #f0f0f0;
        box-shadow: 0 6px 16px rgba(255, 255, 255, 0.08);
    }

    .confirmation-text {
        color: #ccc;
    }

    .confirmation-button {
        background-color: #696565;
        color: #ffffff;
    }

    .confirmation-button:hover {
        background-color: #444;
    }
}

@media (prefers-color-scheme: dark) {
  .confirmation-icon {
      background-color: #033d03; /* Deeper green in dark mode */
  }

  .checkmark {
      color: #b6ffb6;
  }
}

@media (prefers-color-scheme: dark) {
    .change-password-body {
        background-color: #0d0d0d;
        color: #f0f0f0;
    }

    .change-password-card {
        background-color: #1e1e1e;
        color: #fff;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .change-password-card form label {
        color: #f5f5f5;
    }

    .change-password-card input[type="password"] {
        background-color: #111;
        border: 1px solid #333;
        color: #fff;
    }

    .change-password-card form ul {
        color: #ccc;
    }

    .login-button {
        background-color: #2563eb;
    }

    .login-button:hover {
        background-color: #1d4ed8;
    }
}

