/* HESAP Admin - Modern Tema */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-nav .brand {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: #4a5568;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

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

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.btn.secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* Inputs */
.input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

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

/* Actions */
.actions a,
.actions button {
    display: inline-block;
    margin-right: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.actions a:hover,
.actions button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Grids */
.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

/* Flex */
.flex {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Text */
small.muted {
    color: #718096;
    font-size: 12px;
}

/* Summary Cards */
.summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.summary-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.summary-card p {
    font-size: 16px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==== Minimal override for topbar layout (Apart Modern) ==== */
body { background: #f6f7f9; color: #111827; line-height: 1.5; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Topbar */
.topbar { background: #ffffff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { font-weight: 700; font-size: 16px; color: #111827; letter-spacing: .2px; }
.menu { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-link { color: #111827; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 14px; border: 1px solid transparent; }
.menu-link:hover { background: #f3f4f6; border-color: #e5e7eb; }

/* Cards */
.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin: 16px 0; box-shadow: none; backdrop-filter: none; }
.card h1, .card h2, .card h3, .card h4 { background: none; -webkit-text-fill-color: inherit; color: #111827; margin: 0 0 10px; }
.card h1 { font-size: 28px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16px; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.table th { background: #f3f4f6; color: #111827; padding: 10px; font-size: 13px; text-align: left; }
.table td { padding: 10px; border-top: 1px solid #e5e7eb; font-size: 14px; }
.table tbody tr:hover { background: #fafafa; }

/* Buttons */
.btn { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #111827; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; cursor: pointer; }
.btn:hover { background: #f3f4f6; }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.danger:hover { background: #b91c1c; }

/* Inputs */
.input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 14px; }
.input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }

/* Grids */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

@media (max-width: 768px) {
  .container { padding: 12px; }
  .topbar-inner { padding: 10px 12px; }
}

/* Print overrides: sadece içerik yazdırılsın */
@media print {
  body { background: #fff !important; }
  .topbar, .sidebar, .actions, .menu, .menu-link, .btn { display: none !important; }
  .container { max-width: none; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin: 0; }
}
