/* General Reset */
* { box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; 
    line-height: 1.6; 
    color: #333; 
    background-color: #e9ecef; /* The background color outside the box */
    padding: 20px 0;
}

/* The Main "Box" Container */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    display: flex; /* Creates the sidebar/content columns */
    min-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar Styling */
aside {
    width: 250px;
    background: #2c3e50;
    color: #fff;
    padding: 30px 20px;
}

aside h1 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

aside h1 span { color: #3498db; }

nav a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: 0.3s;
}

nav a:hover {
    background: #34495e;
    color: #fff;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 40px;
}

.container { width: 100%; }

/* Buttons & Elements */
.btn { 
    display: inline-block; 
    background: #3498db; 
    color: #fff; 
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 5px; 
    margin-top: 10px;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 20px;
}

/* Form Styling */
form input, form textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; }

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .page-wrapper { flex-direction: column; margin: 10px; }
    aside { width: 100%; padding: 20px; }
}
aside h1 {
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}