/* Profile Page Styles - Following Project Pattern */

/* Hero Section */
.profile-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
    padding: 4rem 0;
}

.profile-hero .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.profile-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.profile-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile Avatar */
.profile-avatar-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.avatar-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.avatar-edit:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Efeito de clique para elementos do perfil */
.avatar-edit:active,
.btn-profile-action:active,
.profile-btn:active,
.edit-btn:active,
.save-btn:active,
.cancel-btn:active,
.upload-btn:active,
.remove-btn:active {
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.1s ease !important;
}

.avatar-edit button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
}

.profile-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: none;
    box-shadow: var(--shadow-md);
    transform: rotate(10deg);
}

.profile-badge.admin-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee0979);
}

.profile-badge.editor-badge {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-bio {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Profile Section */
.profile-section {
    padding: 5rem 0;
    background: var(--light-color);
}

/* Section Headers (Following project pattern) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section (Following stats.html pattern) */
.stats-section {
    margin-bottom: 5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.role-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: capitalize;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.5;
}

/* Info Section */
.info-section {
    margin-bottom: 5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card.verified {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(56, 176, 0, 0.05), rgba(56, 176, 0, 0.02));
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.info-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.info-content p {
    margin: 0;
    color: var(--gray-color);
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-content a:hover {
    color: var(--secondary-color);
}

/* Social Section */
.social-section {
    margin-bottom: 5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.social-card.facebook {
    background: linear-gradient(135deg, #1877f2, #0c4980);
}

.social-card.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-card.instagram {
    background: linear-gradient(135deg, #e4405f, #833ab4);
}

.social-card.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-card.github {
    background: linear-gradient(135deg, #333, #1a1a1a);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Community CTA (Following about.html pattern) */
.community-cta {
    margin-top: 5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.highlight-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles (Following project button patterns) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 0 0 0 var(--radius-xl);
}

.modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:hover,
.form-group textarea:hover {
    background: white;
    border-color: #dee2e6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.15);
    background: white;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background: #f8fff9;
}

.form-text {
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-text-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #e7f3ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: #004085;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-counter {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-color);
    text-align: right;
    font-weight: 500;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Button styles (following project pattern) */
.btn-outline {
    background: transparent;
    color: var(--gray-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: #f8f9fa;
    color: var(--dark-color);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fade-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-fade-up-delayed {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        min-height: 50vh;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .avatar-placeholder {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-highlights {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .modal-container {
        width: 95%;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-header h2 i {
        font-size: 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-placeholder {
        font-size: 2rem;
    }

    .profile-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cta-content h4 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Enhanced Profile Page Styles - Moved from inline */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color, #3a86ff), var(--secondary-color, #8338ec));
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-content {
    position: relative;
    z-index: 2;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* Profile Image Hover Overlay and Actions */
.profile-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-avatar-large:hover .profile-image-hover {
    opacity: 1;
}

.profile-image-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.btn-profile-action {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color, #3a86ff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-profile-action:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-profile-action.danger {
    color: #dc3545;
}

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

.profile-role-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.profile-role-badge.admin {
    background: linear-gradient(135deg, #ff006e, #ff3085);
}

.profile-role-badge.editor {
    background: linear-gradient(135deg, #3a86ff, #5a9bff);
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-main {
    padding: 3rem 0;
    background: #f8f9fa;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.profile-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color, #3a86ff), var(--secondary-color, #8338ec));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.profile-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.profile-card-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card-enhanced {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon-enhanced {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon-enhanced.posts {
    background: linear-gradient(135deg, #3a86ff, #5a9bff);
}

.stat-icon-enhanced.comments {
    background: linear-gradient(135deg, #8338ec, #9b5aec);
}

.stat-icon-enhanced.days {
    background: linear-gradient(135deg, #38b000, #4fc820);
}

.stat-icon-enhanced.role {
    background: linear-gradient(135deg, #ff006e, #ff3085);
}

.stat-number-enhanced {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label-enhanced {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.stat-description-enhanced {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.info-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #3a86ff);
}

.info-icon-enhanced {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color, #3a86ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content-enhanced h4 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content-enhanced p {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.social-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.social-card-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card-enhanced:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-card-enhanced.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
}

.social-card-enhanced.twitter {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
    color: white;
}

.social-card-enhanced.instagram {
    background: linear-gradient(135deg, #e4405f, #f06292);
    color: white;
}

.social-card-enhanced.linkedin {
    background: linear-gradient(135deg, #0077b5, #42a5f5);
    color: white;
}

.social-card-enhanced.github {
    background: linear-gradient(135deg, #333, #666);
    color: white;
}

.social-icon-enhanced {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-label-enhanced {
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    aspect-ratio: 1;
    min-height: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-action-btn:hover {
    border-color: var(--primary-color, #3a86ff);
    color: var(--primary-color, #3a86ff);
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f2ff 100%);
}

.quick-action-btn i {
    font-size: 1.8rem;
}

.activity-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #3a86ff);
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--primary-color, #3a86ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    color: #2c3e50;
}

.activity-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.profile-completion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.completion-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color, #3a86ff), var(--secondary-color, #8338ec));
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    min-width: 80px;
    text-align: right;
}

.completion-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.completion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.completion-item i {
    font-size: 1rem;
}

.text-success {
    color: #28a745 !important;
}

.text-muted {
    color: #6c757d !important;
}

@media (max-width: 768px) {
    .profile-title {
        font-size: 2rem;
    }

    .profile-actions {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid-enhanced {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .info-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .social-grid-enhanced {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

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

/* Favorites Section Styles */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.favorite-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.favorite-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.favorite-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.favorite-content {
    padding: 1.25rem;
}

.favorite-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-meta {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-meta i {
    font-size: 0.75rem;
}

.favorite-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.favorite-item:hover .favorite-remove {
    opacity: 1;
    transform: scale(1);
}

.favorite-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

.empty-state p {
    margin: 0.5rem 0;
}

.profile-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    text-align: center;
}

.profile-card-footer .text-muted {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
}


/* Form text helper */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Container de posts favoritos - Grid responsivo */
.profile-card .posts-grid {
    width: 100%;
}

.profile-card .posts-grid .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.profile-card .posts-grid [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
}

/* Estilos para cards de posts na seção de favoritos */
.profile-card .post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    width: 100%;
}

.profile-card .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-card .post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.profile-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card .post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.profile-card .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: white;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.profile-card .post-content {
    padding: 1.5rem;
}

.profile-card .post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-card .post-title a {
    color: #333;
    text-decoration: none;
}

.profile-card .post-title a:hover {
    color: var(--primary-color);
}

.profile-card .post-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.profile-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.profile-card .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-card .post-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-card .post-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.profile-card .post-actions .btn-outline-danger {
    flex: 0 0 auto;
    width: auto;
}

/* Botão circular vermelho para remover favorito */
.favorite-remove-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.favorite-remove-badge:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6);
}

.favorite-remove-badge i {
    font-size: 0.875rem;
}

/* Badge de categoria no canto superior esquerdo */
.category-badge-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge-left i {
    font-size: 0.7rem;
}

a.category-badge-left,
a.category-badge-left:hover,
a.category-badge-left:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

a.category-badge-left:hover {
    filter: brightness(1.15);
}

/* Animação suave para favoritos extras */
.extra-favorites {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade dos cards de favoritos */
@media (max-width: 991px) {
    .profile-card .posts-grid [class*="col-lg-4"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .profile-card .posts-grid [class*="col-md-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .profile-card .posts-grid .row {
        margin-left: 0;
        margin-right: 0;
    }

    .profile-card .posts-grid [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== PROFILE ADMIN-STYLE SIDEBAR LAYOUT ===== */
.profile-layout-container {
    display: flex;
    min-height: 100vh;
    background: var(--background-color);
}

/* Admin-Style Sidebar */
.profile-admin-sidebar {
    background: linear-gradient(145deg, #161923, #1d2028);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    width: 280px;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.65) rgba(15, 23, 42, 0.85);
    scrollbar-gutter: stable;
}

/* Sidebar Profile Header Section */
.sidebar-profile-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.profile-avatar-wrapper-sidebar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.profile-image-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-large:hover .profile-image-hover {
    opacity: 1;
}

.profile-image-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-profile-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-profile-action:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.btn-profile-action.danger:hover {
    background: #dc2626;
}

.profile-role-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #161923;
    font-size: 0.9rem;
}

.profile-role-badge.admin {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

.profile-role-badge.editor {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.sidebar-profile-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.sidebar-profile-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.sidebar-profile-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.sidebar-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sidebar-profile-badges .profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-badge.badge-vip {
    background: #ff006e;
    color: white;
}

.profile-badge.badge-premium {
    background: #667eea;
    color: white;
}

.profile-badge.badge-free {
    background: #718096;
    color: white;
}

.profile-badge.badge-verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.profile-admin-sidebar::-webkit-scrollbar {
    width: 6px !important;
}

.profile-admin-sidebar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.92) !important;
    border-radius: 10px;
}

.profile-admin-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(96, 165, 250, 0.62) !important;
    border-radius: 10px;
    border: 1px solid rgba(30, 41, 59, 0.9);
}

.profile-admin-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 130, 246, 0.9) !important;
}

.profile-admin-sidebar .admin-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(96, 165, 250, 0.62) rgba(15, 23, 42, 0.85);
}

.profile-admin-sidebar .admin-nav::-webkit-scrollbar {
    width: 6px !important;
}

.profile-admin-sidebar .admin-nav::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.92) !important;
}

.profile-admin-sidebar .admin-nav::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.6) !important;
    border-radius: 10px;
}

.profile-admin-sidebar .admin-nav-header {
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
}

.profile-admin-sidebar .admin-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-admin-sidebar .admin-nav-logo:hover {
    transform: translateY(-2px);
    color: #fff;
}

.profile-admin-sidebar .logo-text {
    background: linear-gradient(90deg, #fff 20%, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.profile-admin-sidebar .admin-nav-logo .admin-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.4));
    min-width: 28px;
}

.profile-admin-sidebar .admin-profile {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-admin-sidebar .admin-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-admin-sidebar .admin-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-admin-sidebar .admin-profile-img img.error {
    display: none;
}

.profile-admin-sidebar .profile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.profile-admin-sidebar .admin-profile-info {
    flex: 1;
    min-width: 0;
}

.profile-admin-sidebar .admin-profile-info h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-admin-sidebar .admin-profile-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    text-transform: capitalize;
}

/* Navigation Sections */
.profile-admin-sidebar .admin-nav {
    flex: 1;
    padding: 1rem 0;
}

.profile-admin-sidebar .nav-section {
    margin-bottom: 1.5rem;
}

.profile-admin-sidebar .nav-section-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem 0.5rem;
    margin: 0;
}

.profile-admin-sidebar .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    border-radius: 10px;
    margin: 0 0.75rem 0.4rem;
}

.profile-admin-sidebar .admin-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-admin-sidebar .admin-nav-item:hover,
.profile-admin-sidebar .admin-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.profile-admin-sidebar .admin-nav-item:hover::before,
.profile-admin-sidebar .admin-nav-item.active::before {
    transform: scaleY(1);
}

.profile-admin-sidebar .admin-nav-item .admin-icon {
    width: 20px;
    height: 20px;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.profile-admin-sidebar .admin-nav-item:hover .admin-icon {
    opacity: 1;
    transform: scale(1.1);
}

.profile-admin-sidebar .admin-nav-text {
    flex: 1;
}

.profile-admin-sidebar .nav-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Main Content Area */
.profile-main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

/* Fix post-card grid inside profile page */
.profile-main-content .posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
}

.profile-main-content .posts-grid .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    width: 100%;
}

.profile-main-content .posts-grid .row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

.profile-main-content .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 991px) {
    .profile-admin-sidebar {
        transform: translateX(-100%);
    }

    .profile-admin-sidebar.active {
        transform: translateX(0);
    }

    .profile-main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .profile-main-content {
        padding: 1rem 0.5rem;
    }
}

/* Remove old sidebar styles */
.profile-layout-wrapper,
.profile-sidebar,
.sidebar-card,
.sidebar-action-btn,
.sidebar-stats {
    display: none !important;
}

/* Page-level scrollbar - match admin panel style */
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
