body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #060714;
    color: #e5e7eb;
}

a {
    color: #8b5cf6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === GLOBAL LAYOUT (APP) === */

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: radial-gradient(circle at left top, #4f46e5, #111827 55%, #020617);
    color: #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-header .logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 18px;
}

.main-header .logo::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    margin-right: 10px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.8);
}

.main-nav a {
    margin-right: 18px;
    color: #e5e7eb;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:last-child {
    margin-right: 0;
}

.main-nav a:hover {
    background: rgba(148, 163, 184, 0.18);
}

.user-info {
    font-size: 13px;
}

.main-content {
    padding: 24px 32px 40px;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #030712 100%);
    min-height: calc(100vh - 70px);
}

.main-footer {
    text-align: center;
    padding: 16px;
    background: #020617;
    color: #6b7280;
    font-size: 12px;
    border-top: 1px solid #111827;
}

/* === BUTTONS === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #f9fafb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.55);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn-primary {
    /* same as .btn, class kombinasyonu için boş bırakıldı */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.7);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    box-shadow: none;
}

.btn-secondary {
    background: #374151;
    box-shadow: none;
}

.btn-danger {
    background: #dc2626;
    box-shadow: none;
}

/* === FORMS === */

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
    color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    box-sizing: border-box;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-success {
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.alert-error {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

/* === TABLES === */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    border-bottom: 1px solid #0f172a;
    padding: 10px 12px;
    font-size: 13px;
}

.table th {
    background: #020617;
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}

.table tr:nth-child(even) td {
    background: #020617;
}

.table tr:hover td {
    background: #020617;
}

/* === BADGES === */

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #facc15;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
}

/* === LOGIN LAYOUT === */

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #4f46e5, #020617 60%, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-layout {
    display: flex;
    max-width: 960px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.9);
}

.login-hero {
    flex: 1.1;
    padding: 40px 36px;
    background: radial-gradient(circle at top left, #4f46e5, #020617 60%);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-hero p {
    font-size: 14px;
    color: #cbd5f5;
}

.login-hero .hero-footnote {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 40px;
}

.login-panel {
    flex: 1;
    padding: 40px 36px;
    background: #020617;
}

.login-panel-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-panel-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 22px;
}

.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: #9ca3af;
}

.login-remember input {
    margin-right: 6px;
}

.login-submit {
    margin-top: 4px;
}

/* === DASHBOARD CARDS === */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.card {
    background: #020617;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #9ca3af;
}

.card .stat-value {
    font-size: 26px;
    font-weight: 600;
    margin-top: 4px;
}

.card .stat-trend {
    margin-top: 4px;
    font-size: 12px;
    color: #22c55e;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

