* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top left, #1e293b, #020617);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}

body::before {
    background: conic-gradient(from 120deg, #0ea5e9, #6366f1, #22c55e, #0ea5e9);
    top: -120px;
    right: -80px;
    animation: orbit 28s linear infinite;
}

body::after {
    background: conic-gradient(from -60deg, #f97316, #ec4899, #8b5cf6, #f97316);
    bottom: -140px;
    left: -100px;
    animation: orbit 34s linear infinite reverse;
}

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

.top-bar {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    color: #e5e7eb;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.3);
    z-index: 10;
    backdrop-filter: blur(16px);
}

.top-bar .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .logo-area img {
    height: 32px;
}

.top-bar .app-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 16px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    line-height: 1.2;
}

.user-label .user-name {
    font-weight: 600;
}

.user-label .user-role {
    opacity: 0.8;
    font-size: 11px;
}

.side-menu {
    width: 220px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.96));
    color: #cbd2d9;
    padding-top: 10px;
    flex-shrink: 0;
    height: calc(100vh - 48px);
    position: fixed;
    top: 48px;
    left: 0;
    overflow-y: auto;
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin: 3px 0;
}

.side-menu li.menu-section {
    opacity: 0.6;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 16px 4px;
}

.side-menu a {
    display: block;
    padding: 9px 16px;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.side-menu a:hover {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
    color: #f9fafb;
    transform: translateX(2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
    filter: brightness(1.05);
}

.side-menu a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle, #38bdf8, #6366f1);
    transform: translateY(-50%);
    opacity: 0.9;
}

.side-menu a span {
    margin-left: 12px;
}

.side-menu a.active {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
    color: #f9fafb;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(56, 189, 248, 0.65);
    filter: brightness(1.08);
    animation: menu-active-pulse 3.2s ease-in-out infinite;
}

@keyframes menu-active-pulse {
    0%,
    100% {
        box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.9),
            0 0 0 1px rgba(56, 189, 248, 0.65);
    }
    50% {
        box-shadow:
            0 18px 40px rgba(15, 23, 42, 1),
            0 0 0 1px rgba(56, 189, 248, 0.9);
    }
}

.content {
    margin-top: 48px;
    margin-left: 0;
    padding: 20px;
    overflow-y: auto;
}

body.has-sidebar .content {
    margin-left: 220px;
}

body.no-sidebar .content {
    margin-left: 0;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 48px);
    position: relative;
    padding: 20px;
}

.login-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.8));
    border-radius: 24px;
    padding: 32px 42px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    color: #e5e7eb;
    box-shadow:
        0 24px 80px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    overflow: hidden;
    backdrop-filter: blur(22px);
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
    will-change: transform, box-shadow, filter;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.2s ease;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.9), rgba(236, 72, 153, 0.9));
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
}

.login-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent);
    top: -70px;
    right: -50px;
    filter: blur(6px);
    pointer-events: none;
}

.login-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.login-card .subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.login-card .login-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
}

.login-card .login-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-logo img {
    height: 64px;
    margin-bottom: 10px;
}

.login-card h2 {
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d1d5db;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #d2d6dc;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(75, 85, 99, 0.9);
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: rgba(248, 113, 113, 0.8);
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.8),
        0 0 0 10px rgba(248, 113, 113, 0.12);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 16px;
    font-size: 13px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Checkbox inputs should not inherit full-width text input styles */
.form-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.form-group input[type="checkbox"]:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 0 0 6px rgba(56, 189, 248, 0.10);
}

/* Nested checkbox groups (e.g. Windows versions) */
.software-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 22px;
}

.software-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-section > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.software-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(75, 85, 99, 0.6);
}

.software-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 0 0 10px rgba(56, 189, 248, 0.12);
    transform: translateY(-0.5px);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.form-actions form {
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background-size: 160% 160%;
    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        background-position 0.35s ease,
        filter 0.2s ease;
}

.ripple {
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5, #6366f1);
}

.btn.small {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
}

.btn:hover {
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.55);
    transform: translateY(-1px);
    background-position: 100% 0;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.9);
    filter: brightness(0.96);
}

.btn:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 0 0 4px rgba(56, 189, 248, 0.8);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0 50%, rgba(255, 255, 255, 0.45), transparent 55%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transform: translateX(-40%);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: none;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
    transform: translateX(20%);
}

.btn.primary::before {
    background: radial-gradient(circle at 0 50%, rgba(239, 246, 255, 0.7), transparent 55%);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 600ms linear;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    overflow: hidden;
    color: #e5e7eb;
    backdrop-filter: blur(18px);
    transform-origin: center;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
    will-change: transform, box-shadow, filter;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.2s ease;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.card.metric-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card.metric-card .card-label {
    font-size: 14px;
    color: #9ca3af;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card.metric-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #f9fafb;
}

.card.metric-card .card-accent {
    margin-top: 10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #ec4899);
    opacity: 0.9;
}

.card:hover {
    filter: brightness(1.05);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #f9fafb;
}

.page-title span {
    font-weight: 600;
    color: #38bdf8;
}

.quick-actions-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-actions-card .quick-actions-header h3 {
    margin-bottom: 4px;
    font-size: 19px;
    font-weight: 600;
}

.quick-actions-card .quick-actions-header p {
    font-size: 13px;
    color: #9ca3af;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Admin > Cihaz Yönetimi: üst aksiyon butonlarını biraz daha kompakt yap */
.admin-devices-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 13px;
    line-height: 1.1;
    min-height: 34px;
    white-space: nowrap;
}

/* Servis Takibi: İşlemler sütunundaki küçük butonları hizala */
.service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.service-actions form {
    margin: 0;
}

.service-actions .btn.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    line-height: 1;
}

/* Servis Takibi: "Servisten Geldi" inline form select'lerini butonlarla aynı stile yaklaştır */
.service-return-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.service-return-form .input {
    height: 30px;
    padding: 0 36px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    line-height: 1;
    min-width: 140px;
    max-width: 220px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;

    background-image:
        linear-gradient(45deg, transparent 50%, rgba(229, 231, 235, 0.9) 50%),
        linear-gradient(135deg, rgba(229, 231, 235, 0.9) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.service-return-form .input:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 0 0 10px rgba(56, 189, 248, 0.12);
    transform: translateY(-0.5px);
}

.service-return-form .input:invalid {
    border-color: rgba(248, 113, 113, 0.8);
}

.button-row .table-filter {
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    margin-bottom: 0;
}

.button-row .table-filter input {
    margin-bottom: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(30, 64, 175, 0.7);
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 14px;
    color: #e5e7eb;
}

.data-table th {
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.98));
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 700;
}

.data-table tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.96);
}

.data-table tr.expired {
    background: rgba(248, 113, 113, 0.24);
}

.data-table tr.warning {
    background: rgba(250, 204, 21, 0.21);
}

.data-table tr.maint-ok {
    background: rgba(22, 163, 74, 0.16);
}

.data-table tr.maint-warning {
    background: rgba(234, 179, 8, 0.18);
}

.data-table tr.maint-due {
    background: rgba(248, 113, 113, 0.22);
}

.data-table tr.maint-overdue {
    background: rgba(248, 113, 113, 0.28);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.7);
    animation: row-pulse 1.6s ease-in-out infinite;
}

.data-table tbody tr:hover {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
}

/* Cihaz Yönetimi: işlem butonlarını yan yana göster */
.device-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

/* Periyodik bakım: işlem butonlarını toparla */
.data-table th.maintenance-actions-col,
.data-table td.maintenance-actions-col {
    text-align: center;
    white-space: nowrap;
}

.maintenance-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.maintenance-actions form {
    margin: 0;
}

.flash-container {
    margin-bottom: 10px;
}

.flash {
    padding: 8px 12px;
    border-radius: 14px;
    margin-bottom: 5px;
    font-size: 13px;
    border: 1px solid transparent;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    max-width: 920px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.flash-success {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.7);
}

.flash-danger {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.8);
}

@keyframes row-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(248, 113, 113, 0.8),
            0 0 0 0 rgba(248, 113, 113, 0.0);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(248, 113, 113, 0.9),
            0 0 0 8px rgba(248, 113, 113, 0.35);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.badge-pending {
    background: rgba(234, 179, 8, 0.18);
    border-color: rgba(234, 179, 8, 0.7);
    color: #facc15;
}

.badge-tech {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.7);
    color: #bfdbfe;
}

.badge-admin {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.75);
    color: #bbf7d0;
}

.badge-action-service {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.9);
    color: #dbeafe;
}

.badge-action-depot {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.85);
    color: #dbeafe;
}

.badge-action-scrap {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.9);
    color: #fee2e2;
}

.badge-ok {
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(22, 163, 74, 0.75);
    color: #bbf7d0;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.22);
    border-color: rgba(234, 179, 8, 0.8);
    color: #facc15;
}

.badge-expired {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.85);
    color: #fee2e2;
}

.badge-active {
    background: rgba(22, 163, 74, 0.25);
    border-color: rgba(22, 163, 74, 0.9);
    color: #bbf7d0;
}

.badge-inactive {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(75, 85, 99, 0.9);
    color: #e5e7eb;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.8);
    color: #dbeafe;
}

.badge-role-admin {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.9);
    color: #fee2e2;
}

.badge-role-tech {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.9);
    color: #dbeafe;
}

.badge-role-user {
    background: rgba(107, 114, 128, 0.6);
    border-color: rgba(107, 114, 128, 0.9);
    color: #e5e7eb;
}

.badge-role-purchasing {
    background: rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.9);
    color: #e0f2fe;
}

.badge:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 1);
    filter: brightness(1.05);
}

/* Responsive: küçük ekranlarda menü + içerik taşmasını azalt */
@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .side-menu {
        position: static;
        width: auto;
        height: auto;
        top: auto;
        left: auto;
        margin: 12px 12px 0;
        border-radius: 18px;
    }

    body.has-sidebar .content {
        margin-left: 0;
    }

    .content {
        margin-top: 0;
        padding: 14px;
        overflow: visible;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .device-actions,
    .maintenance-actions {
        flex-wrap: wrap;
        white-space: normal;
        justify-content: flex-start;
    }

    .button-row .table-filter {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }

    .user-area {
        width: 100%;
        justify-content: space-between;
    }

    .user-label {
        align-items: flex-start;
    }

    .page-title {
        font-size: 22px;
    }
}
