/* Profile Page Styles */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Item actions styling */
.item-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.item-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
}

.item-actions .btn-primary {
    background: #28a745;
    border-color: #28a745;
}

.item-actions .btn-primary:hover {
    background: #218838;
    border-color: #1e7e34;
}

.item-actions .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

.item-actions .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.page-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.back-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.main-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    position: relative;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #28a745;
    transition: all 0.3s ease;
}

.profile-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.change-avatar-btn:hover {
    background: #218838;
}

.profile-card h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.profile-card p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

.profile-menu {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #28a745;
    text-decoration: none;
}

.menu-item.active {
    background: #28a745;
    color: white;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Profile Content */
.profile-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.section-content {
    margin-top: 20px;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28a745;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f8f9fa;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Items */
.experience-item,
.education-item,
.certificate-item,
.language-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.item-content p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 500;
    min-width: 120px;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.skill-range {
    flex: 1;
}

.skill-value {
    font-size: 12px;
    color: #6c757d;
    min-width: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .item-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* Notification Badge Styles */
.menu-item {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}