/* Reset default browser styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* General container styling */
.container {
    display: flex;
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

/* Sidebar styles */
.sidebar {
    background-color: #2c3e50;
    color: white;
    width: 280px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 26px;
    /* Added subtle text shadow for depth */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    margin-bottom: 8px;
    font-size: 15px;
}

.sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 25px;
    /* Slightly brighter hover effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    font-size: 16px;
    /* Improved icon contrast */
    color: #eee;
}

/* Content styles */
.content {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-left: 1px solid #eee;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.topbar h1 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    /* Refined header text shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.topbar div {
    font-size: 16px;
    color: #777;
}

/* Dashboard card styles */
.dashboard-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    /* Enhanced card appearance */
    transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
    /* Added subtle lift effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.dashboard-card p {
    color: #555;
    font-weight: 500;
}

/* FORM STYLES */
.login-container {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button[type="submit"],
button[type="button"] {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #2c3e50;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #34495e;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    padding: 10px;
    background-color: #fdedec;
    border: 1px solid #e74c3c;
    border-radius: 5px;
}

/* Media Queries */
@media screen and (max-width: 960px) {
    .container {
        flex-direction: column;
        margin: 10px;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
        margin-bottom: 20px;
    }

    .content {
        padding: 20px;
        border-left: none;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar h1 {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 600px) {
    .sidebar h2 {
        font-size: 24px;
    }

    .sidebar ul li a {
        font-size: 14px;
        padding: 10px;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .topbar div {
        font-size: 15px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .dashboard-card h3 {
        font-size: 20px;
    }

    .dashboard-card p {
        font-size: 14px;
    }
}