/* Reset */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: white;
    flex-shrink: 0;
    padding: 20px 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #34495e;
}

/* Main content */
.main {
    flex: 1;
    padding: 20px;
}

h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Forms */
.form-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Buttons */
button {
    padding: 10px 18px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:hover {
    background-color: #f1f1f1;
}
/* Links */
a{
    text-decoration:none;
    color:#3498db;
}

a:hover{
    text-decoration:underline;
}

/* Container */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* Header */
header{
    background:#2c3e50;
    color:white;
    padding:15px 20px;
}

header h1{
    font-size:24px;
}

/* Navigation */
nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

nav ul{
    list-style:none;
    display:flex;
}

nav ul li{
    margin-left:20px;
}

nav ul li a{
    color:white;
    font-weight:bold;
}

/* Buttons */
.btn{
    display:inline-block;
    padding:10px 15px;
    border:none;
    background:#3498db;
    color:white;
    border-radius:4px;
    cursor:pointer;
}

.btn:hover{
    background:#2980b9;
}

/* Cards (for notes, papers etc) */
.card{
    background:white;
    padding:20px;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

/* Grid layout */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

/* Forms */
form{
    background:white;
    padding:25px;
    border-radius:8px;
    max-width:400px;
}

input, textarea, select{
    width:100%;
    padding:10px;
    margin-top:5px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:4px;
}

/* Alerts */
.alert{
    padding:12px;
    border-radius:5px;
    margin-bottom:15px;
}

.alert-success{
    background:#2ecc71;
    color:white;
}

.alert-error{
    background:#e74c3c;
    color:white;
}

/* Footer */
footer{
    margin-top:40px;
    padding:20px;
    text-align:center;
    background:#2c3e50;
    color:white;
}

/* Responsive */
@media(max-width:768px){
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
    .sidebar a {
        flex: 1 0 50%;
        text-align: center;
    }
}