/* Dashboard Components */

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-card.stat-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.stat-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card.stat-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card.stat-duplicate {
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-card.stat-duplicate .stat-icon {
    background: rgba(168, 85, 247, 0.1);
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.security-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        var(--score-color, var(--primary)) calc(var(--score) * 1%),
        rgba(99, 102, 241, 0.1) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
}

/* Güvenlik skoru renk sınıfları */
.score-circle.score-excellent {
    --score-color: #10b981; /* Yeşil - Mükemmel */
    background: conic-gradient(
        #10b981 calc(var(--score) * 1%),
        rgba(16, 185, 129, 0.1) 0
    );
}

.score-circle.score-good {
    --score-color: #6366f1; /* Mavi - İyi */
    background: conic-gradient(
        #6366f1 calc(var(--score) * 1%),
        rgba(99, 102, 241, 0.1) 0
    );
}

.score-circle.score-medium {
    --score-color: #f59e0b; /* Turuncu - Orta */
    background: conic-gradient(
        #f59e0b calc(var(--score) * 1%),
        rgba(245, 158, 11, 0.1) 0
    );
}

.score-circle.score-poor {
    --score-color: #ef4444; /* Kırmızı - Zayıf */
    background: conic-gradient(
        #ef4444 calc(var(--score) * 1%),
        rgba(239, 68, 68, 0.1) 0
    );
}

.score-circle::before {
    content: '';
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border-radius: 50%;
    position: absolute;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.score-max {
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.score-label {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.score-label.score-excellent { color: #10b981; }
.score-label.score-good { color: #6366f1; }
.score-label.score-medium { color: #f59e0b; }
.score-label.score-poor { color: #ef4444; }

.recent-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card-item:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateX(4px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-link:hover {
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-icon {
    font-size: 1.5rem;
}

.card-info {
    flex: 1;
}

.card-name {
    font-weight: 600;
    color: var(--text-primary);
}

.card-username {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

/* Warning Section */
.warning-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.warning-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.warning-section h2 svg {
    color: var(--danger);
}

.warning-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.duplicate-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.duplicate-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.duplicate-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
}

.duplicate-info {
    flex: 1;
}

.duplicate-apps {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.duplicate-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 13-14" Laptop optimization */
@media (max-width: 1440px) {
    .main-content {
        margin-left: 260px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 1366px) {
    .main-content {
        margin-left: 240px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .score-circle {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 220px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}
