/* User Profile */
.profile-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.profile-header-card {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 32px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #1b5e20;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar-large:hover {
    transform: scale(1.05);
    border-color: white;
}

.profile-header-info h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-email {
    font-size: 14px;
    color: #c8e6c9;
    margin-bottom: 4px;
}

.profile-joined {
    font-size: 13px;
    color: #a5d6a7;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.profile-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.profile-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1b5e20;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 13px;
    font-weight: 600;
    color: #757575;
}

.profile-value {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
}

.edit-profile-btn {
    width: 100%;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.edit-profile-btn:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e8f5e9;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #9e9e9e;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.badge-item {
    text-align: center;
    padding: 16px 10px;
    background: #f8fdf9;
    border-radius: 12px;
    border: 2px solid #e8f5e9;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: #e8f5e9;
    border-color: #2e7d32;
    transform: scale(1.05);
}

.badge-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.badge-name {
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
}

.btn-secondary {
    padding: 16px 32px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #424242;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #2e7d32;
    color: #2e7d32;
    transform: translateY(-2px);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2e7d32;
    font-size: 14px;
    letter-spacing: 0.3px;
}
/* Inline styles extracted from profile.html */

.profile-value-green {
    color: #2e7d32;
}

.account-status-verified {
    color: #2e7d32;
}

#settingsEdit {
    display: none;
}

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

.settings-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
}

.settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-save-btn {
    flex: 1;
    min-width: 120px;
    margin-top: 0;
}

.settings-cancel-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px;
    border-radius: 12px;
}
/* ==============================
   Profile Page Notifications
   ============================== */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.custom-notification-info    { background: #3b82f6; }
.custom-notification-success { background: #10b981; }
.custom-notification-error   { background: #ef4444; }
.custom-notification-warning { background: #f59e0b; }

/* ==============================
   Status Labels
   ============================== */
.status-approved { color: #10b981; font-weight: 600; }
.status-rejected { color: #ef4444; font-weight: 600; }
.status-pending  { color: #f59e0b; font-weight: 600; }

/* ==============================
   Animations
   ============================== */
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(400px); opacity: 0; }
}

/* ==============================
   Recent Activity List
   ============================== */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
}

/* ==============================
   Profile Header
   ============================== */
#profilePicture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

#profileUploads,
#profileDownloads,
#profileScore {
    font-weight: 600;
    color: #1e293b;
}

/* ==============================
   Form Inputs
   ============================== */
input[type="file"]#profilePictureInput {
    display: none;
}

button#uploadPictureBtn,
button#changePasswordBtn {
    cursor: pointer;
}

/* ==============================
   Empty / Loading states
   ============================== */
#recentActivity p {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* ==============================
   Enhanced Professional Profile Design (from profile.blade.php)
   ============================== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.profile-hero {
    background: linear-gradient(135deg, #1ab82f 0%, #c0cc11 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-picture-wrapper {
    position: relative;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.upload-picture-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-picture-btn:hover {
    transform: scale(1.1);
    background: #f8fafc;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-info .email {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 5px;
}

.profile-info .joined {
    font-size: 0.95rem;
    opacity: 0.85;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid #667eea;
}

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

.stat-card h3 {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 5px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    color: #475569;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.activity-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.activity-item {
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.activity-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.activity-icon {
    font-size: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.activity-details {
    flex: 1;
}

.activity-text {
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 5px;
}

.activity-time {
    color: #94a3b8;
    font-size: 0.85rem;
}

.status-approved { color: #10b981; font-weight: 600; }
.status-pending { color: #f59e0b; font-weight: 600; }
.status-rejected { color: #ef4444; font-weight: 600; }

/* ==============================
   Inline Style Classes (extracted from blade)
   ============================== */
.stat-value-green {
    font-size: 1.5rem;
    color: #10b981;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.avatar-with-bg {
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .profile-hero-content { flex-direction: column; text-align: center; }
    .content-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
