/* ============ GLOBAL ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f3f4ff, #fef9f5);
    color: #111827;
}

/* Main layout container */
header,
main,
footer {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 16px;
}

/* General text */
p {
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0;
}
.card-form input[type="month"]{
    margin-top: 0px !important;
}

/* Horizontal lines */
hr {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    margin: 18px 0;
}

/* ============ HEADER & NAVBAR ============ */
header {
    padding: 24px 16px 12px;
}

header h1 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #111827;
}

/* Nav pill bar */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #ffffffcc;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.main-nav a {
    text-decoration: none;
    font-size: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #000;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight:400;
}

/* Default hover effect */
.main-nav a:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

/* First link (Dashboard) – active look */
.main-nav a:first-child {
    background: #111827;
    color: #ffffff;
}

/* ============ MAIN CONTENT ============ */


/* Headings inside pages (like Employee List, Form title etc.) */
h2, h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
    color: #111827;
}

/* Small helpers */
small {
    font-size: 12px;
    color: #6b7280;
}

/* ============ TABLES (Dashboard, Attendance List, Summary, etc.) ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

th,
td {
    padding: 10px 12px;
    font-size: 16px;
   font-weight: 600;
    color: #000;
    border-bottom: 1px solid #000;
    text-align: center !important;
}

th {
    background: #eef2ff;
    position: sticky;
    top: 0;
    z-index: 1;
border-bottom: 1px solid #000;
}

tr:nth-child(even) td {
    background: #f9fafb;
}
p a {
    font-size: 22px;
}

tr:hover td {
    background: #eef2ff;
}

/* Action links inside table (Edit | Delete | Calculate Salary) */
td a {
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    margin: 0 2px;
    border-radius: 999px;
    border: 1px solid #000;
    background: #ffffff;
    color: #374151;
    transition: all 0.15s ease;
}

td a:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

/* Responsive: table scroll on small screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============ FORMS (Employee, Attendance, Incentive, Salary calc) ============ */
form {
    background: #ffffff;
    padding: 20px 18px;
    margin-top: 16px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

form label {
    display: block;
    font-size: 18px;
    color: #000000;
    font-weight: 600;
}

form label strong,
form label span {
    font-weight: 600;
    color: #111827;
}

/* Inputs and selects */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    outline: none;
    background: #f9fafb;
    transition: all 0.18s ease;
}

input:focus,
select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

/* Remove double spacing from <br><br> in existing forms */
form br {
    display: none;
}

/* ============ BUTTONS ============ */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 50px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    margin-top: 8px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.4);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Disabled state */
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============ STATUS MESSAGES ============ */
.error {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 14px;
}
.success {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 14px;
}

/* ============ FOOTER ============ */
footer {
    padding: 12px 16px 24px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}
/* ============ calendar ============ */ 

input[type="month"] {
    padding: 5px 10px;
    font-size: 17px;
    margin: 20px 0px 10px 5px;
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 640px) {
    header h1 {
        font-size: 22px;
    }

    .main-nav {
        border-radius: 18px;
        justify-content: flex-start;
    }

    .main-nav a {
        font-size: 13px;
    }

    form {
        padding: 16px 14px;
    }
}

/*khushi*/

