:root {
    --primary-orange: #ff9f43;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', sans-serif;
}

body {
    height: 100vh;
    background: #ffffff;
}

#main-content {
    display: none;
}

/* Preloader */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: #ffffff;
    z-index: 9999; /* on top of everything */
}

.preloader span {
    width: 15px;
    height: 15px;
    background: #ff9f43;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
    overflow: none;
}
.preloader span:nth-child(2) {
    animation-delay: 0.2s;
}
.preloader span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.6;
    }
    to {
        transform: translateY(-20px);
        opacity: 1;
    }
} 


/* Login Page */

.login-container {
    display: flex;
    height: 100vh;
}

/* --- Left Section --- */
.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.logo img {
    height: 150px;
    margin-bottom: 20px;

    display: block;      /* Makes the image a block element */
    margin-left: auto;   /* These two lines center a block image */
    margin-right: auto;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
}

.input-group input {
    width: 100%;
    padding: 14px 10px;
    font-size: 16px;
    border: 1px solid #068fff;
    outline: none;
    border-radius: 4px;

    padding-right: 40px; /* Space on the right so text doesn't go under the icon */
    box-sizing: border-box;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(0, -50%);
    color: #777;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease;
    background-color: white;
    padding: 0 5px;
}

.input-group input:focus+label, .input-group input:valid+label {
    top: -1px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px; 
}

.toggle-password {
    cursor: pointer;
}

.input-icon, .toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%); 
    width: 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 18px; 
    transition: color 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    color: #333;
}

/* --- Right Section --- */
.login-right {
    flex: 1.2;
    background-color: var(--primary-orange);
    /* Patterned background simulation */
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 20%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 20%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.illustration-content img {
    width: auto;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 900px) {
    .login-right {
        display: none;
    }
}

.btn-signin {
  width: 100%;
  font-weight: 700;
  background: #ff9f43;
  border: 1px solid #ff9f43; 
  padding: 12px;
  -webkit-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
  margin-top: 15px;
  color: #fff;
  box-shadow: none;
  font-size: 16px;
}
.btn-signin:hover {
  box-shadow: 0 50px #fff inset !important;
  color: #ff9f43;
}

/* Admin Dashboard */

/* WRAPPER */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    transition: 0.3s;
}

.sidebar .logo {
    margin-bottom: 30px;
}

.sidebar .menu {
    list-style: none;
}

/* Add spacing between icon and text */
.sidebar .menu a i {
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
}

/* Handling the collapsed state */
.sidebar.collapsed {
    width: 80px; /* Slightly wider to center icons */
    text-align: center;
}

.sidebar.collapsed .logo, 
.sidebar.collapsed .menu span {
    display: none; /* Hide text and logo name when collapsed */
}

.sidebar.collapsed .menu a i {
    margin-right: 0; /* Center the icon */
    font-size: 1.5rem;
}

.sidebar .menu li {
    margin: 15px 0;
}

.sidebar .menu a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar .menu a:hover {
    background: #1e293b;
    color: #fff;
}

.sidebar.collapsed {
    width: 70px;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    height: 60px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    justify-content: space-between;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 20px;
}

/* FOOTER */
.footer {
    background: #ffffff;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
}