/* Collapsible News List Styles */
.collapsible-news-list {
    max-height: 200px; /* Haber listesinin maksimum yüksekliği */
    overflow-y: auto; /* Yüksekliği aşarsa scrollbar çıkar */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.collapsible-news-list .news-item-detail {
    padding: 5px 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.05);
}

.collapsible-news-list .news-item-detail:last-child {
    border-bottom: none;
}

.collapsible-news-list .news-item-detail a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    display: block; /* Tüm alanı tıklanabilir yap */
    padding: 2px 0;
}

.collapsible-news-list .news-item-detail a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Make the 'Bahis' count clickable */
.clickable-bahis {
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.clickable-bahis:hover {
    color: var(--accent-color) !important; /* Hover rengi */
    text-decoration: underline;
}

/* Global Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Header Stilleri */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-section i {
    font-size: 60px;
    color: var(--white);
}

.header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.welcome-banner h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.welcome-banner p {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.dashboard-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon i {
    font-size: 36px;
    color: var(--white);
}

.dashboard-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dashboard-card p {
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px;
}

.footer p {
    margin: 5px 0;
}

.footer-note {
    opacity: 0.8;
    font-size: 14px;
}

/* Dashboard İçi Ortak Stiller */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-title i {
    font-size: 48px;
}

.dashboard-title h1 {
    font-size: 36px;
    margin: 0;
}

.dashboard-title p {
    opacity: 0.9;
    margin-top: 5px;
}

.back-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-full {
    grid-column: 1 / -1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

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

.result-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--primary-color);
}

.result-value {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .dashboard-card.featured {
        grid-column: span 1;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 32px;
    }
}

