/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

/* ===== Header ===== */
header {
    background-color: #2f3640;
    color: #fff;
    padding: 15px 30px;
    font-size: 22px;
    font-weight: bold;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 60px; /* header height */
    left: 0;
    width: 220px;
    height: calc(100% - 60px);
    background-color: #353b48;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #00a8ff;
}

/* ===== Content ===== */
.content {
    margin-left: 240px; /* sidebar width + gap */
    padding: 80px 30px 30px 30px; /* top padding for header */
}

/* ===== Cards (dashboard) ===== */
.dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.card a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #0097e6;
    font-weight: bold;
    transition: 0.3s;
}

.card a:hover {
    color: #007bb5;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #0097e6;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e1f5fe;
}

/* ===== Forms ===== */
input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #0097e6;
    outline: none;
}

/* ===== Buttons ===== */
button {
    background-color: #0097e6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #007bb5;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    .content {
        margin-left: 0;
        padding-top: 20px;
    }
    .dashboard {
        flex-direction: column;
        align-items: center;
    }
}
