﻿/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: #05070f;
    color: #e5e7eb;
}

/* =========================
   LOGIN PAGE
========================= */

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 20% 40%, #1e293b, #0f172a 60%);
}

.login-card {
    width: 520px; /* büyüttük */
    padding: 65px 60px;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 0 60px rgba(124,58,237,0.35);
    text-align: center;
    transition: 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 80px rgba(124,58,237,0.55);
    }

.logo-img {
    width: 220px !important;
    max-width: 100%;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.4s ease;
}


.logo-spin {
    animation: spin360 0.8s ease;
}

@keyframes spin360 {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}


.login-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: none;
    padding: 0 15px;
    background: #1e293b;
    color: white;
}

.btn-login {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg,#7c3aed,#9333ea);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-login:hover {
        box-shadow: 0 0 20px rgba(147,51,234,0.7);
    }

.error-text {
    margin-top: 15px;
    color: #f87171;
}
.input-group input {
    width: 100%;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: none;
    padding: 0 15px;
    background: #1e293b;
    color: white;
    transition: all 0.25s ease;
}

    /* Mouse gelince hafif büyüsün */
    .input-group input:hover {
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(124,58,237,0.4);
    }

    /* Tıklayınca (focus) biraz daha net glow */
    .input-group input:focus {
        outline: none;
        transform: scale(1.04);
        box-shadow: 0 0 20px rgba(124,58,237,0.7);
        border: 1px solid #7c3aed;
    }
@keyframes spin360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-spin {
    animation: spin360 0.8s ease;
}



/* =========================
   ADMIN PANEL LAYOUT
========================= */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0f172a;
    padding: 30px 20px;
}

.logo-area {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    color: white;
}

.sidebar nav a {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #94a3b8;
    transition: 0.25s ease;
}

    .sidebar nav a:hover {
        background: linear-gradient(90deg, #6366f1, #7c3aed);
        color: white;
    }

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    background: #05070f;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
}

.page-body {
    background: #0f172a;
    padding: 30px;
    border-radius: 20px;
}

/* =========================
   PANEL BUTTON STYLE (FIX)
========================= */

button,
.btn-panel {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    transition: 0.25s ease;
}

    button:hover,
    .btn-panel:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
    }
/* ============================= */
/* FIX ADMIN PANEL STYLES */
/* ============================= */

/* Enable scroll for admin pages */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0b1220;
    padding: 30px 20px;
    border-right: 1px solid rgba(255,255,255,0.05);
}

    .sidebar .logo-area {
        color: #fff;
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 30px;
    }

    .sidebar nav a {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        color: #94a3b8;
        text-decoration: none;
        margin-bottom: 8px;
        transition: all 0.2s ease;
    }

        .sidebar nav a:hover {
            background: rgba(124,58,237,0.15);
            color: #fff;
        }

/* Page Card */
.page-body .card {
    background: #0f1a2f;
    padding: 30px;
    border-radius: 18px;
}

/* FIX USERS TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .table th {
        text-align: left;
        padding: 14px;
        font-weight: 600;
        color: #cbd5e1;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .table td {
        padding: 14px;
        color: #e2e8f0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

/* FIX DASHBOARD BUTTONS */
.dashboard-buttons {
    display: flex;
    gap: 15px; /* <<< BUTON ARASI BOŞLUK */
    margin-top: 20px;
}

    .dashboard-buttons .btn-primary {
        width: auto;
        padding: 12px 22px;
    }

/* FIX MFA PAGE BUTTONS */
.page-body button {
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

    .page-body button:hover {
        box-shadow: 0 0 12px rgba(124,58,237,0.5);
    }

/* STOP LOGIN FROM BREAKING SCREEN */
/*.login-card {
    transform: none !important;
}
.button-row {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

    .button-row form {
        margin: 0;
    }

.endpoint-info {
    color: #94a3b8;
    font-size: 14px;
}
.button-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

    .button-row form {
        margin: 0;
    }


.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    transition: 0.25s ease;
}

    .btn-login:hover {
        transform: scale(1.04);
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
    }
.btn-primary,
.btn-warning,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 90px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}*/
/* =========================
   UNIFIED BUTTON SYSTEM
========================= */

.btn-primary,
.btn-warning,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 110px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* Primary */
.btn-primary {
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    color: white;
}

    .btn-primary:hover {
        box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
        transform: translateY(-2px);
    }

/* Warning (Edit / Cancel) */
/* Warning artık Delete ile aynı stil */

.btn-warning {
    background: #b91c1c;
    color: white;
}

    .btn-warning:hover {
        background: #991b1b;
    }


/* Danger */
.btn-danger {
    background: #b91c1c;
    color: white;
}

    .btn-danger:hover {
        background: #991b1b;
    }

/* Action cell fix */
.actions-cell {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-warning:hover {
        background-color: #d97706;
    }
    /* ===== SIDEBAR BOTTOM FIX (FORCE) ===== */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
}

.sidebar-nav {
    flex: 1 !important;
}

/* footer dibe */
.sidebar-footer {
    margin-top: auto !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* user card */
.sidebar-usercard {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 14px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    margin-bottom: 10px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    font-weight: 700;
    font-size: 14px;
    color: white;

    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(124, 58, 237, 0.55);
}

.sidebar-usertext { min-width: 0; }

.sidebar-username {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
/* ===== SIDEBAR BOTTOM FIX (FORCE) ===== */
.sidebar {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
}

.sidebar-nav {
    flex: 1 !important;
}

/* footer dibe */
.sidebar-footer {
    margin-top: auto !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* user card */
.sidebar-usercard {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 14px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    margin-bottom: 10px;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;

    font-weight: 700;
    font-size: 14px;
    color: white;

    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(124, 58, 237, 0.55);
}

.sidebar-usertext { min-width: 0; }

.sidebar-username {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sidebar-usersub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* logout şık */
.sidebar-logout {
    display: block;
    text-align: center;

    padding: 10px 12px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 600;
    font-size: 12px;

    color: rgba(255,255,255,0.95);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.22);
}

.sidebar-logout:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.sidebar-usersub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* logout şık */
.sidebar-logout {
    display: block;
    text-align: center;

    padding: 10px 12px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 600;
    font-size: 12px;

    color: rgba(255,255,255,0.95);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.22);
}

.sidebar-logout:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}