/* --- Root Variables for Branding --- */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --sidebar-bg: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}


/* --- Login Page Styling --- */
/* Branding Section Styling */
.top-branding {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    /* gap: 10px;  */
}

.company-logo {
    width: 80px;
    /* Aap apne hisaab se chhota-bada kar sakte hain */
    height: auto;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fffefe;
    /* Rang badal sakte hain */
    font-family: Arial, sans-serif;
}

/* Ensure the body is relative to position the logo correctly */
.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(135deg, #0f172a 0%, #3f0471 100%); */
    background: url("images/bg.png") no-repeat center center/cover;
}

.login-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-out;
}

.login-header h1 {
    margin-bottom: 5px;
    text-align: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.login-header p {
    margin-bottom: 22px;
    text-align: center;
}

.form-group label {
    padding: 2px;
}

.form-group input {
    margin-bottom: 6px;
}

/* Password eyes system */
.password-box {
    position: relative;
}

.password-box input {
    width: 100%;
    padding-right: 40px;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.toggle-eye:hover {
    color: #000;
}

/* password close system */


#loginForm button {
    margin-top: 8px;
}

/* --- Layout Structure --- */
.wrapper {
    display: flex;
}

/* --- Sidebar Styling --- */
.sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: white;
    position: fixed;
    padding: 1.5rem;
    transition: all 0.3s;
}

.sidebar-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1rem;
}

.nav-links {
    list-style: none;
}

.nav-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
}

/* --- Main Content Area --- */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* --- Cards & Sections --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Forms & Buttons --- */
input,
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    margin-top: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* --- PMS Stars Styling (Requirement 5) --- */
.stars {
    color: var(--accent-warning);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 10px;
    }

    .sidebar span,
    .sidebar-header {
        display: none;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}


/* ====== End Index Section ======= */

