/* --- General Setup & CSS Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    line-height: 1.6;
}

a {
    color:#007bff;
    text-decoration: none;
}

/* --- Sidebar Styles (Desktop) --- */
.sidebar {
    width: calc(350px + 1cm); 
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    background-color: #333; /* Dark gray */
    color: #f4f4f4;
    text-align: center;
    padding: 2em 1em;
    overflow-y: auto;
}

.sidebar h1 {
    color: #f4f4f4;
    font-size: 1.8em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.sidebar p {
    color: #f4f4f4;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.profile-pic {
    width: 60%;             /* Use a percentage of the sidebar's width */
    max-width: 220px;       /* Set a maximum size to prevent it from getting too large */
    aspect-ratio: 1 / 1;    /* Maintain a 1:1 ratio (square), making the circle perfect */
    /* height property is no longer needed */
    border-radius: 50%;
    object-fit: cover;      /* Crucial for ensuring the image fills the circle without distortion */
    border: 4px solid #555;
    margin-bottom: 1em;
}

/* --- Navigation & Login Form --- */
.sidebar nav ul {
    list-style-type: none;
}

.sidebar nav ul li a {
    padding: 0.3em 1em;
    color: #e1f7df;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
    display: flex; 
    align-items: center; 
    justify-content: space-between;  
    transition: color 0.3s ease;
}

.sidebar nav ul li a:hover {
    color: #5396de; /* A darker shade of blue for the hover effect */
    text-decoration: underline;
}

.sidebar nav ul li a:hover {
    background-color: #555;
}

/* This styles all links by default */
a {
    color: #007bff; /* The initial color of the link (a shade of blue) */
    text-decoration: none; /* Optional: removes the underline */
    transition: color 0.3s ease; /* Makes the color change smooth over 0.3 seconds */
}

/* This rule applies ONLY when the mouse is hovering over the link */
a:hover {
    color: #0056b3; /* A darker shade of blue for the hover effect */
    text-decoration: underline; /* Optional: adds an underline on hover */
}

span {
    font-weight: bold;
}

.sidebar nav ul li a:hover {
    background-color: #555;
}

.sidebar nav ul li a i {
    width: 20px;
    text-align: center;
}

.admin-login {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid #555;
}

.admin-login input {
    width: 100%;
    margin-bottom: 0.75em;
    padding: 0.6em;
    border-radius: 3px;
    border: 1px solid #666;
    background: #222;
    color: #f4f4f4;
}

.admin-login button {
    width: 100%;
    padding: 0.7em;
    border-radius: 3px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
}

/* --- Main Content Area (Desktop) --- */
.main-content {
    flex-grow: 1;
    margin-left: calc(350px + 1cm); /* MUST match the sidebar width */
    background-color: #D3D3D3;
    color:#222;
    padding: 0em;
}

.content-box h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5em;
}

.content-box p {
    margin-bottom: 1.2em;
    font-size: 1.1em;
}
.content-box {
    background-image: url('images/siminBackground.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 0em;
    border-radius: 0px;
    min-height: 100vh;
    margin-top:0em;
    margin-right: 0em;
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 992px) {
    body {
        flex-direction: column; /* Stack sidebar on top of content */
    }

    .sidebar {
        position: relative; /* Un-fix the sidebar */
        width: 100%;
        height: auto; /* Allow height to adjust to content */
        z-index: 1000;
    }

    @media (max-width: 992px) {
    /* ... other rules ... */
    .profile-pic {
        width: 40vw;         /* Set width to 40% of the viewport/screen width */
        max-width: 150px;    /* Still cap it at 150px so it doesn't get too big on tablets */
        /* height and aspect-ratio are inherited from the main rule, so no need to repeat */
    }
    /* ... other rules ... */
}
  
/* This rule will ONLY apply to screens 768px wide or smaller */
@media (max-width: 768px) {
    .content-box {
        background-image: url('images/mobile.jpg');
    }
}

    .main-content {
        margin-left: 0; /* Remove the margin for stacked layout */
        padding: 2em 1.5em; /* Adjust padding for smaller screens */
    }

    .content-box h1 {
        font-size: 2em;
    }
}