/* ==================== KEDV IT DEMİRBAŞ TAKİP - MODERN CSS ==================== */
/* Tüm stilleri içerir - Direkt styles.css'in yerine kopyalayın */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    min-height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .logo-text strong {
        font-size: 20px;
        font-weight: 700;
    }

    .logo-text small {
        font-size: 12px;
        opacity: 0.9;
    }

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.badge-admin {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.badge-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.nav-center {
    display: flex;
    gap: 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        font-weight: 600;
    }

.nav-icon {
    font-size: 18px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown {
    position: relative;
}

    .nav-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-top: 8px;
    animation: dropdownFade 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

    .nav-dropdown-menu a:hover {
        background: #f5f6f8;
        color: #667eea;
    }

.menu-icon {
    font-size: 18px;
}

.menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 6px 8px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-logout:hover {
        background: rgba(255, 255, 255, 0.25);
    }

/* ==================== DASHBOARD HEADER ==================== */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: fadeIn 0.5s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 42px;
}

.dashboard-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    animation: fadeIn 0.6s ease 0.2s both;
}

.stat-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.card-purple {
    border-color: #667eea;
}

.card-pink {
    border-color: #f093fb;
}

.card-blue {
    border-color: #4facfe;
}

.card-green {
    border-color: #43e97b;
}

.stat-card-inner {
    padding: 25px;
    display: flex;
    gap: 20px;
}

.stat-icon .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.3s ease;
}

.card-purple .icon-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-pink .icon-circle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-blue .icon-circle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-green .icon-circle {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:hover .icon-circle {
    transform: rotate(10deg) scale(1.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.stat-label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-bottom: 12px;
}

.stat-trend {
    font-size: 13px;
}

.trend-up {
    color: #43e97b;
    font-weight: 600;
}

.stat-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.8s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    min-width: 45px;
    text-align: right;
}

.stat-footer {
    padding: 15px 25px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.stat-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

    .stat-link:hover {
        color: #764ba2;
        transform: translateX(4px);
    }

/* ==================== DASHBOARD GRID ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    animation: fadeIn 0.7s ease 0.3s both;
}

.dashboard-col-main,
.dashboard-col-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ==================== CHARTS ==================== */
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .chart-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.chart-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

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

.chart-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

    .chart-btn:hover {
        border-color: #667eea;
        color: #667eea;
    }

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

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

.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.chart-half .chart-body {
    height: 280px;
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .card-header-modern h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .view-all-link:hover {
        color: #764ba2;
    }

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-purple {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
}

.action-pink {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border-color: #f093fb;
}

.action-blue {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-color: #4facfe;
}

.action-green {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-color: #43e97b;
}

.quick-action-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 28px;
}

.action-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.action-subtitle {
    font-size: 12px;
    color: #666;
}

/* ==================== LIST CARDS ==================== */
.list-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

    .list-item:hover {
        background: #f5f6f8;
    }

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.status-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.badge-zimmet {
    background: rgba(102, 126, 234, 0.1);
}

.badge-iade {
    background: rgba(67, 233, 123, 0.1);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.list-item-subtitle {
    font-size: 12px;
    color: #666;
}

.item-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f6f8;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .item-btn:hover {
        background: #667eea;
        color: white;
    }

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    color: #999;
    font-size: 14px;
}

/* ==================== ALERTS ==================== */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: white;
    transition: opacity 0.3s ease;
}

.alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.95) 0%, rgba(56, 249, 215, 0.95) 100%);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.95) 0%, rgba(250, 112, 154, 0.95) 100%);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%);
}

.alert-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.95) 0%, rgba(0, 242, 254, 0.95) 100%);
}

.alert-icon {
    font-size: 22px;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

    .alert-close:hover {
        opacity: 1;
    }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(67, 233, 123, 0.4);
    }

.btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #fa709a 100%);
    color: white;
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    }

.btn-ghost {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

    .btn-ghost:hover {
        background: #667eea;
        color: white;
    }

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

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

    .card-header h2,
    .card-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
    }

.card-body {
    padding: 30px;
}

/* ==================== TABLES ==================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

    .table thead {
        background: #fafafa;
    }

    .table th {
        padding: 15px;
        text-align: left;
        font-size: 13px;
        font-weight: 700;
        color: #666;
        text-transform: uppercase;
    }

    .table td {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .table tbody tr:hover {
        background: #f5f6f8;
    }

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(67, 233, 123, 0.15);
    color: #2a9d5f;
}

.badge-info {
    background: rgba(79, 172, 254, 0.15);
    color: #1e88e5;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
}

.badge-danger {
    background: rgba(245, 87, 108, 0.15);
    color: #d32f2f;
}

.badge-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

    .page-header h1 {
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

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

    .charts-row {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-muted {
    color: #999;
}

.text-center {
    text-align: center;
}
