/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Color Variables */
:root {
    --primary-color: #757575; /* Black for main text or background */
    --secondary-color: rgb(15, 15, 15); /* Gold for accents */
    --background-light: #eef2f3; /* Dark gray for a soft black background */
    --icon-color: black; /* Gold for icons to match accents */
    --text-color: black; /* White text for readability on dark backgrounds */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Gold shadow */
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--primary-color);
    color: var(--text-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.4s ease;
    z-index: 1;
    box-shadow: 2px 0 12px var(--shadow-color);
}

.sidebar.collapsed {
    width: 80px; /* Adjust collapsed width */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

#toggle-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sidebar Menu */
.sidebar-menu {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border-radius: 5px;
}

.menu-item i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: transform 0.4s, color 0.3s ease;
}

/* Hide text in collapsed mode */
.sidebar.collapsed .menu-item span {
    display: none;
}

.menu-item.active, .menu-item:hover {
    background: var(--background-light);
    color: var(--secondary-color);
    box-shadow: inset 0 0 5px var(--shadow-color);
    transform: translateX(5px);
}

.menu-item:hover i {
    transform: scale(1.1);
    color: var(--icon-color);
}

.menu-item span {
    margin-left: 10px;
    transition: color 0.3s ease;
}
.menu-item span > a {
    text-decoration: none;
    color: var(--secondary-color);
}

/* Content Area */
.content {
    margin-left: 280px;
    padding: 20px;
    width: 100%;
    overflow-y: auto;
    background: var(--background-light);
    transition: margin-left 0.4s ease;
    color: var(--text-color);
}

.sidebar.collapsed ~ .content {
    margin-left: 80px;
}
.sidebar.collapsed .sidebar-header img, .sidebar.collapsed .sidebar-header .other-element {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    .content {
        margin-left: 80px;
    }
    .sidebar-header h2,
    .menu-item span {
        display: none;
    }
    .menu-item i {
        margin-right: 0;
    }
}

/* Loader Styles */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--background-light);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    text-align: center;
}

.loader-icon {
    font-size: 3rem;
    color: var(--icon-color);
    animation: spin 1.5s linear infinite;
    margin-bottom: 15px;
}

/* Placeholder for icon styling */
.icon-makeup::before {
    content: '\1F484'; /* Optional: Unicode for lipstick emoji as placeholder */
}

.loader p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--primary-color);
}

.login-form {
    background: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
}

.login-form h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px var(--shadow-color);
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 5px;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid var(--text-color);
    outline: none;
    color: var(--text-color);
    background: transparent;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--secondary-color);
}

.input-group label {
    position: absolute;
    left: 5px;
    top: 10px;
    font-size: 1rem;
    color: var(--text-color);
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px var(--shadow-color);
}

/* Button */
.login-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: var(--text-color);
    color: var(--secondary-color);
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #ffd900;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.top-nav h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.user-profile i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    
}

.widget {
    background: var(--background-light);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.widget-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.widget h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.widget p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Table Section */
.table-section {
    background: var(--widget-bg);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.table-section h2 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.custom-table th, .custom-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--background-light);
}

.custom-table th {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.custom-table tr:hover {
    background: var(--background-light);
}

.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

.status.completed {
    background: #4caf50;
    color: #fff;
}

.status.ongoing {
    background: #ffc107;
    color: #000;
}

.status.pending {
    background: #f44336;
    color: #fff;
}
