﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6fb;
    color: #202938;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #172033;
    color: #fff;
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
}

    .brand span {
        color: #4f8cff;
    }

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .sidebar nav a {
        text-decoration: none;
        color: #b8c2d6;
        padding: 13px 15px;
        border-radius: 8px;
        transition: 0.2s;
    }

        .sidebar nav a:hover,
        .sidebar nav a.active {
            background: #2b3a55;
            color: #fff;
        }

.logout-btn {
    margin-top: auto;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
}

.main-content {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

    .topbar h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .topbar p {
        color: #7b8496;
        font-size: 14px;
    }

.user-info {
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.profile-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(20, 35, 60, 0.05);
    max-width: 1100px;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #edf0f5;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e6efff;
    color: #3678e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.profile-heading h2 {
    margin-bottom: 7px;
}

.profile-heading p {
    color: #7b8496;
    font-size: 14px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 25px 0 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #566174;
    }

    .form-group input {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid #dce2eb;
        border-radius: 8px;
        outline: none;
        font-size: 14px;
        background: #fff;
    }

        .form-group input:focus {
            border-color: #4f8cff;
            box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
        }

        .form-group input[readonly] {
            background: #f5f7fa;
            color: #7b8496;
        }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

    .form-actions button {
        padding: 13px 22px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
    }

.cancel-btn {
    background: #edf0f5;
    color: #455064;
}

.save-btn {
    background: #3678e5;
    color: #fff;
}

#message {
    margin-top: 15px;
    font-size: 14px;
}

    #message.success {
        color: #16834a;
    }

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

        .sidebar nav {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }

    .logout-btn {
        margin-top: 20px;
    }

    .main-content {
        padding: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-card {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
