/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #e5e7eb;
    color: #333;
    min-height: 100vh;
    transition: background 0.3s;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #2c3e50; 
    padding: 25px;
    color: #ecf0f1;
    flex-shrink: 0;
}

.sidebar .logo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #3e5871;
    padding-bottom: 15px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #1abc9c;
    margin: 20px 0 10px 5px;
    text-transform: uppercase;
}

.sidebar ul { list-style: none; }

.sidebar button {
    width: 100%;
    background: transparent;
    border: none;
    color: #bdc3c7;
    text-align: left;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: 0.3s;
}

.sidebar button:hover {
    background-color: #34495e;
    color: #1abc9c;
}

.special-btn {
    border: 1px solid #1abc9c !important;
    color: #1abc9c !important;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.info-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #1abc9c;
    min-height: 500px;
}

.divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Exercise 4 Styling */
.calc-container {
    max-width: 450px;
}

.input-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-box label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="number"], input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline-color: #1abc9c;
}

.action-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.reset-btn {
    background-color: #e74c3c;
    margin-left: 10px;
}

.res-box {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #1abc9c;
}

.grade-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.grade-table td, .grade-table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* Dark Mode */
.dark-mode { background-color: #1a1a1a !important; color: #eee; }
.dark-mode .info-card { background-color: #2c3e50; color: white; border-top-color: #16a085; }
.dark-mode .res-box { background: #34495e; color: #fff; }