/* General */
.profile-body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 20px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ddd;
    object-fit: cover;
}

.profile-header .user-name-h2 {
    margin: 10px 0 5px;
}

.role {
    color: #555;
    font-size: 14px;
}

.company-name {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin-top: 5px;
}

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    border: none;
    background: #f0f0f0;
    font-weight: bold;
    transition: 0.3s;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    border-radius: 6px;
}

/* Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 15px;
}

/* Forms */
.profile-form {
    display: flex;
    flex-direction: column;
}

.profile-form .profile-label {
    margin: 8px 0 4px;
    font-weight: bold;
}

.profile-form .profile-input,
.profile-form .profile-btn {
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.profile-form .profile-btn {
    background: #007bff;
    color: white;
    cursor: pointer;
}

.profile-form .profile-btn:hover {
    background: #0056b3;
}

/* Image Preview */
.preview-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-top: 10px;
    object-fit: cover;
    border: 1px solid #ccc;
}




/* 🔹 Top Bar */
.profile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

/* 🔹 Buttons */
.back-btn,
.close-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.back-btn:hover,
.close-btn:hover {
    background: #0056b3;
}

/* 🔹 Laptop/Desktop (default > 992px) */
@media screen and (min-width: 992px) {

    .back-btn,
    .close-btn {
        font-size: 15px;
        padding: 8px 16px;
    }
}

/* 🔹 Tablet (768px - 991px) */
@media screen and (max-width: 991px) and (min-width: 768px) {
    .profile-topbar {
        margin-bottom: 8px;
    }

    .back-btn,
    .close-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* 🔹 Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
    .profile-topbar {
        justify-content: center;
        gap: 15px;
    }

    .back-btn,
    .close-btn {
        font-size: 13px;
        padding: 5px 10px;
        flex: 1;
        max-width: 120px;
    }
}

/* 🔹 Extra Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .profile-topbar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .back-btn,
    .close-btn {
        width: 100%;
        max-width: none;
        font-size: 12px;
        padding: 6px;
    }
}

/* 🔹 Responsive Breakpoints */
/* Desktop (>=1200px) */
@media (min-width: 1200px) {
    .profile-card {
        max-width: 600px;
    }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .profile-card {
        max-width: 700px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .profile-card {
        max-width: 500px;
        padding: 15px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 8px;
    }
}

/* Mobile (<=767px) */
@media (max-width: 767px) {
    .profile-container {
        padding: 15px;
    }

    .profile-card {
        padding: 12px;
    }

    .profile-img {
        width: 80px;
        height: 80px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 6px;
    }

    .profile-form .profile-input,
    .profile-form .profile-btn {
        font-size: 14px;
    }
}