/* === ROOT DEĞİŞKENLER === */
:root {
    --bg-color: #0a0a15;
    --container-bg: #141428;
    --text-color: #e0e0e0;
    --text-muted: #8888aa;
    --accent-color: #ff007f;
    --accent-color2: #00f7ff;
    --accent-glow: #ff0080;
    --success-color: #00e676;
    --error-color: #ff1744;
    --warning-color: #ffa000;
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}

/* === TEMEL SIFIRLAMA === */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === NAVBAR === */
.navbar-custom {
    background: linear-gradient(180deg, #0d0d1f 0%, #111128 100%);
    border-bottom: 1px solid rgba(255, 0, 127, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
}

.navbar-brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color2);
}

/* === NAVBAR BUTONLARI === */
.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-buttons a {
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.navbar-buttons a:hover {
    color: var(--accent-color);
    background: rgba(255, 0, 127, 0.1);
}

.navbar-buttons a.active {
    color: var(--accent-color);
    background: rgba(255, 0, 127, 0.15);
}

.navbar-buttons a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.navbar-buttons .logout-btn {
    color: #ff4444;
}

.navbar-buttons .logout-btn:hover {
    color: #ff6666;
    background: rgba(255, 68, 68, 0.12);
}

/* === SAYFA BAŞLIKLARI === */
.page-header {
    margin: 100px 0 30px 0;
    font-size: 42px;
    font-family: var(--font-title);
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-in-out;
    line-height: 1.2;
}

.page-header::after {
    content: '';
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
    display: block;
    margin: 15px 0 0 0;
    border-radius: 2px;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === GENEL KART === */
.main-container {
    background: var(--container-bg);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === FORM ELEMANLARI === */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color2);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color2) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
}

/* === MESAJLAR === */
.green-message {
    text-align: center;
    margin-top: 10px;
    color: var(--success-color);
    font-weight: 500;
}

.red-message {
    text-align: center;
    margin-top: 10px;
    color: var(--error-color);
    font-weight: 500;
}

/* === TABLO === */
table {
    width: 100%;
    color: #ffffff;
    font-size: 0.88rem;
    border-collapse: collapse;
}

th, td {
    text-align: center;
    padding: 14px 10px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
    background: rgba(255, 0, 127, 0.08);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--accent-color);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

tr:hover {
    background: rgba(255, 0, 127, 0.05);
}

/* === BUTONLAR === */
.btn {
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin: 3px;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: #d32f2f;
    color: #ffffff;
}
.btn-danger:hover { box-shadow: 0 0 12px rgba(211, 47, 47, 0.5); }

.btn-warning {
    background: #ffa000;
    color: #000000;
}
.btn-warning:hover { box-shadow: 0 0 12px rgba(255, 160, 0, 0.5); }

.btn-success {
    background: #388e3c;
    color: #ffffff;
}
.btn-success:hover { box-shadow: 0 0 12px rgba(56, 142, 60, 0.5); }

.btn-secondary {
    background: #5a6070;
    color: #ffffff;
}
.btn-secondary:hover {
    background: #4a5060;
    box-shadow: 0 0 12px rgba(90, 96, 112, 0.5);
}

.btn-info {
    background: #1976d2;
    color: #ffffff;
}
.btn-info:hover { box-shadow: 0 0 12px rgba(25, 118, 210, 0.5); }

/* === ALERT === */
.alert {
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
}

.alert-success {
    background: rgba(0, 230, 118, 0.12);
    color: #69f0ae;
}

.alert-danger {
    background: rgba(255, 23, 68, 0.12);
    color: #ff8a80;
}

.alert-warning {
    background: rgba(255, 160, 0, 0.12);
    color: #ffcc80;
}

.alert .close {
    color: inherit;
    opacity: 0.6;
}

/* === KART === */
.card {
    background: var(--container-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    background: transparent;
    border-bottom: 1px solid rgba(255, 0, 127, 0.2);
    padding: 15px 20px;
}

.card-body {
    background: transparent !important;
    padding: 20px;
}

/* === MODAL === */
.modal-content {
    background: var(--container-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
}

.modal-header {
    background: rgba(255, 0, 127, 0.08);
    border-bottom: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--accent-color);
}

.modal-header .close {
    color: var(--text-color);
    opacity: 0.7;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === BADGE === */
.badge {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

.badge-danger {
    background: rgba(255, 23, 68, 0.2);
    color: #ff1744;
}

.badge-warning {
    background: rgba(255, 160, 0, 0.2);
    color: #ffa000;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
}

.badge-info {
    background: rgba(0, 247, 255, 0.15);
    color: var(--accent-color2);
}

/* === FOOTER === */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 20px;
    margin-top: 40px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-color2); }

/* === TOOLTIP === */
.tooltip-inner {
    background: var(--accent-color);
    color: #fff;
    font-weight: 500;
}
.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: var(--accent-color);
}

/* === ŞİFRE GÖSTER/GİZLE === */
.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 42px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    font-size: 0.95rem;
}
.toggle-password:hover {
    color: var(--accent-color2);
}
.position-relative { position: relative; }

/* === LOGIN HEADER === */
.login-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === GENEL LINK === */
a {
    color: var(--accent-color2);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .page-header {
        font-size: 32px;
        text-align: center;
    }
    .page-header::after {
        margin: 12px auto 0 auto;
    }
}

@media (max-width: 576px) {
    .page-header {
        font-size: 26px;
        margin-top: 80px;
    }
    .main-container {
        padding: 15px;
    }
    .form-submit {
        font-size: 0.85rem;
        padding: 12px;
    }
    th, td {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-buttons a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}
