/* Hero Banner */
.profile-banner {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 50px 0 120px 0;
    text-align: center;
    margin-bottom: 0;
    margin-left: calc(-1 * var(--sidebar-width, 0px));
    margin-right: 0;
    width: 100vw;
    position: relative;
    overflow: visible;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: bannerPattern 20s linear infinite;
}

@keyframes bannerPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 20px;
}

.banner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-hero {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
}

.btn-hero-primary {
    background: #ffffff;
    color: #4facfe;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

/* Page Content */
.page-content-wrapper {
    max-width: 1200px;
    margin: -80px auto 0;
    width: 100%;
    padding: 0 20px 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile Header */
.profile-header {
    text-align: left;
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.avatar-upload-btn i {
    color: white;
    font-size: 16px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.profile-email,
.profile-location {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-email i,
.profile-location i {
    color: #4facfe;
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card:hover {
    border-color: #4facfe;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    color: white;
    font-size: 28px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 50px;
    animation: slideInRight 0.6s ease-out backwards;
}

.profile-section:nth-child(1) { animation-delay: 0.5s; }
.profile-section:nth-child(2) { animation-delay: 0.6s; }
.profile-section:nth-child(3) { animation-delay: 0.7s; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.section-title i {
    color: #4facfe;
    font-size: 26px;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Action Buttons */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Success Message */
.success-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message.show {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-banner {
        padding: 40px 0 100px 0;
        margin-left: 0;
        width: 100%;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .page-content-wrapper {
        padding: 0 20px 40px;
        margin-top: -60px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-email,
    .profile-location {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 15px;
    }

    .profile-banner {
        padding: 30px 0 80px 0;
    }

    .page-content-wrapper {
        margin-top: -50px;
    }

    .profile-header {
        padding: 20px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .stat-value {
        font-size: 28px;
    }
}
