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

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(
            circle at top,
            #172033,
            #080b11 55%
        );

    color: #ffffff;
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;

    background: rgba(20, 25, 36, 0.95);

    border: 1px solid #30384a;
    border-radius: 16px;

    padding: 40px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
    text-align: center;

    font-size: 42px;

    margin-bottom: 5px;
}

.subtitle {
    text-align: center;

    color: #8d96a8;

    margin-bottom: 35px;
}

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

.input-group label {
    display: block;

    margin-bottom: 8px;

    color: #b7bfce;
}

.input-group input {
    width: 100%;

    padding: 14px;

    border-radius: 8px;

    border: 1px solid #333c4e;

    background: #0d1119;

    color: white;

    outline: none;

    font-size: 15px;
}

.input-group input:focus {
    border-color: #5b8cff;
}

button {
    width: 100%;

    padding: 14px;

    border: none;
    border-radius: 8px;

    background: #5b8cff;

    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    opacity: 0.9;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    margin-top: 20px;

    text-align: center;

    min-height: 20px;
}

.error {
    color: #ff6262;
}

.success {
    color: #61db91;
}


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

.navbar {
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: #111620;

    border-bottom: 1px solid #252d3c;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-button {
    width: auto;

    padding: 9px 15px;

    background: #d84d4d;
}

/* Normal Durum */
h5 a,
footer a {
  color: #e74c3c; /* Kırmızı */
  text-decoration: none;
  transition: color 0.3s ease; /* Renk değişimini yumuşatır */
}

/* Fareyle Üzerine Gelindiğinde */
h5 a:hover,
footer a:hover {
  color: #c0392b; /* Koyu Kırmızı */
  text-decoration: underline; /* Fare üzerine gelince altını çizer */
}
.dashboard {
    width: 100%;
    max-width: 1200px;

    margin: auto;

    padding: 40px 25px;
}

.dashboard h2 {
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: #8d96a8;

    margin-bottom: 30px;
}

.card {
    background: #111620;

    border: 1px solid #252d3c;

    border-radius: 12px;

    padding: 25px;

    margin-bottom: 20px;
}

.user-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.info-box {
    background: #0b0f16;

    padding: 15px;

    border-radius: 8px;
}

.info-label {
    display: block;

    color: #737d90;

    font-size: 13px;

    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.admin-grid h4 {
    margin-bottom: 15px;
}

.admin-grid .input-group {
    margin-bottom: 12px;
}

.admin-grid pre {
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
}

/* Clearer, keyboard-friendly query controls */
.input-group select,
.input-group input,
.input-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: #f4f7ff;
    background: #0b1019;
    border: 1px solid #303b50;
    border-radius: 10px;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a9c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.input-group input:focus-visible,
.input-group select:focus-visible,
.input-group textarea:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(91, 140, 255, 0.35);
    outline-offset: 2px;
    border-color: #79a0ff;
}

.field-hint {
    margin-top: 8px;
    color: #8d9bb3;
    font-size: 13px;
    line-height: 1.5;
}

.query-result {
    border: 1px solid #273247;
    border-radius: 10px;
    background: #090d14;
    padding: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.admin-grid > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid #273247;
    border-radius: 12px;
    background: rgba(8, 12, 19, 0.55);
}

@media (max-width: 640px) {
    .navbar { height: auto; min-height: 64px; padding: 12px 16px; }
    .dashboard { padding: 24px 14px; }
    .card { padding: 18px; }
    .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .user-info { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
