/* Modern Profile Page Styles */

.profile-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Profile Hero Section */
.profile-hero {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.profile-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.avatar-edit-btn:hover {
    background: #667eea;
    transform: scale(1.1);
}

.profile-info h1 {
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info p {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.profile-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 0.95rem;
}

.meta-icon {
    font-size: 1.1rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card.primary::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card.success::before {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.stat-card.danger::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.stat-content p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* Charts Section */
.charts-section {
    margin-bottom: 40px;
}

.chart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

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

.chart-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-controls .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-controls .btn.active,
.chart-controls .btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Activity Section */
.activity-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.activity-table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.activity-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f8f9fa;
    color: #495057;
}

.activity-table tr:hover {
    background: #f8f9fa;
}

.activity-table tr:last-child td {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: #495057;
}

.empty-state p {
    margin: 0 0 24px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Danger Section */
.danger-section {
    margin-bottom: 40px;
}

.danger-section .section-title {
    color: #e74c3c;
}

.danger-section .section-title::before {
    background: #e74c3c;
}

.danger-card {
    background: white;
    border: 2px solid #fadbd8;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.danger-content h3 {
    margin: 0 0 8px 0;
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: 600;
}

.danger-content p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

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

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

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #6c757d;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-main {
        padding: 20px 0;
    }
    
    .profile-hero {
        padding: 30px 20px;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .activity-table {
        font-size: 0.9rem;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 12px 16px;
    }
    
    .danger-card {
        flex-direction: column;
        text-align: center;
    }
    
    .meta-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-hero {
        padding: 20px;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .activity-table-container {
        overflow-x: auto;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
}