
.profile-container {
    padding: 40px 20px;
    margin-top:100px !important;
    min-height: calc(100vh - 300px);
}

/* ============================================
   MAIN PROFILE LAYOUT
   ============================================ */

.profile-container .row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ============================================
   SIDEBAR / PROFILE CARD
   ============================================ */

.profile-sidebar {
    flex: 0 0 280px;
    margin-bottom: 0;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding: 30px 20px;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 200px;
}

.profile-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.profile-picture-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-picture-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
}


.profile-picture-wrapper:hover .picture-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.upload-btn {
    color: white;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.profile-picture-wrapper:hover .upload-btn {
    opacity: 1;
}


/* Profile thumbnail in header - Make it smaller */
.user-profile-btn .profile-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid #007bff;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}


.upload-btn i {
    font-size: 20px;
}
.upload-btn span {
    font-size: 12px;
    font-weight: 600;
}

.profile-info {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.profile-email {
    font-size: 13px;
    color: #999;
    margin: 0;
    word-break: break-all;
}

.profile-menu {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0;
}

.menu-item:hover,
.menu-item.active {
    background-color: #f0f8ff;
    color: #007bff;
    border-left-color: #007bff;
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.col-lg-9.col-md-8 {
    flex: 1;
}

.profile-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-section {
    padding: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    width: 100%;
}

.form-control:focus {
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-control:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    color: #666;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* ============================================
   FILE UPLOAD STYLES
   ============================================ */

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    background-color: #f5f5f5;
    border-color: #007bff;
}

.file-upload-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-wrapper::after {
    content: 'Choose File';
    display: block;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.file-upload-wrapper.dragging {
    background-color: #e8f4f8;
    border-color: #007bff;
}

#imagePreviewContainer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

#imagePreview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
    border-radius: 4px;
    border: none;
    margin-bottom: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert button {
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

.alert div {
    flex: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInSidebar {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE STYLES - TABLET
   ============================================ */

@media (max-width: 1199px) {
    .profile-container .row {
        gap: 20px;
    }

    .profile-sidebar {
        flex: 0 0 250px;
    }

    .profile-card {
        top: 180px;
    }

    .content-section {
        padding: 30px;
    }
}

@media (max-width: 991px) {
    .profile-container {
        padding: 20px 15px;
    }

    .profile-container .row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .profile-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .profile-card {
        position: static;
        top: auto;
        padding: 25px 15px;
        cursor: pointer;
    }

    .col-lg-9.col-md-8 {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Sidebar collapse functionality */
    .profile-sidebar.sidebar-collapsed .profile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .profile-sidebar.sidebar-expanded .profile-menu {
        max-height: 500px;
        overflow: visible;
        transition: max-height 0.3s ease;
    }

    .profile-card::after {
        content: '';
        display: inline-block;
        width: 12px;
        height: 12px;
        border-right: 2px solid #007bff;
        border-bottom: 2px solid #007bff;
        transform: rotate(-45deg);
        margin-left: 10px;
        transition: transform 0.3s ease;
        position: absolute;
        top: 30px;
        right: 20px;
    }

    .profile-sidebar.sidebar-expanded .profile-card::after {
        transform: rotate(45deg);
    }

    .profile-picture-wrapper {
        width: 140px;
        height: 140px;
        margin: 0 auto 15px;
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-email {
        font-size: 12px;
    }

    .content-section {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE
   ============================================ */

@media (max-width: 576px) {
    .profile-container {
        padding: 15px 10px;
    }

    .profile-card {
        padding: 20px 12px;
    }

    .profile-picture-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto 12px;
    }

    .profile-info {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .profile-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .profile-email {
        font-size: 11px;
    }

    .menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .profile-menu {
        max-height: 500px;
    }

    .content-section {
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }

    .form-text {
        font-size: 11px;
        margin-top: 4px;
    }

    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .file-upload-wrapper {
        padding: 12px;
    }

    .file-upload-wrapper::after {
        font-size: 13px;
    }

    #imagePreview {
        max-width: 150px;
        max-height: 150px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .alert i {
        font-size: 14px;
    }

    .alert button {
        font-size: 18px;
    }
    .user-profile-btn .profile-thumb {
        width: 22px;
        height: 22px;
        margin-right: 4px;
    }
}

@media (max-width: 380px) {
    .profile-picture-wrapper {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px;
    }

    .profile-name {
        font-size: 12px;
    }

    .profile-email {
        font-size: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .user-profile-btn .profile-thumb {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
}