/*
 * Nexus - Visio Diyafon Merkezi Yonetim Sistemi
 * Main Stylesheet
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
}

/* Color Variables */
:root {
    --visio-red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.w-full {
    width: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.uppercase {
    text-transform: uppercase;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border: 1px solid;
}

.border-b {
    border-bottom: 1px solid;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.grayscale {
    filter: grayscale(1);
}

.opacity-75 {
    opacity: 0.75;
}

/* Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Pulse Animation */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Blob Animation */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--visio-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Icons - SVG Inline */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-xs {
    width: 12px;
    height: 12px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* ========== LOGIN PAGE ========== */
#login-page {
    display: flex;
    min-height: 100vh;
    background: white;
}

.login-left {
    display: none;
    width: 50%;
    background: #111827;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    padding: 48px;
    color: white;
}

@media (min-width: 1024px) {
    .login-left {
        display: flex;
    }
}

.login-left .blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -80px;
    margin-top: -80px;
    width: 384px;
    height: 384px;
    background: #ef4444;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(48px);
    opacity: 0.2;
}

.login-left .blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: -80px;
    margin-bottom: -80px;
    width: 384px;
    height: 384px;
    background: #9333ea;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(48px);
    opacity: 0.2;
}

.login-left .noise-overlay {
    position: absolute;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.2;
}

.login-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.login-logo .dot {
    color: var(--visio-red);
}

.login-headline {
    max-width: 448px;
    margin: auto 0;
}

.login-headline h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.login-headline h2 span {
    color: var(--gray-400);
}

.login-headline p {
    color: var(--gray-400);
    font-size: 18px;
    line-height: 1.6;
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.login-footer .avatars {
    display: flex;
}

.login-footer .avatars>div {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #111827;
    margin-left: -8px;
}

.login-footer .avatars>div:first-child {
    margin-left: 0;
}

.login-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: white;
    position: relative;
}

@media (min-width: 1024px) {
    .login-right {
        width: 50%;
    }
}

.login-form-container {
    width: 100%;
    max-width: 448px;
}

.login-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .login-mobile-logo {
        display: none;
    }
}

.login-mobile-logo span {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--gray-900);
}

.login-mobile-logo .dot {
    color: var(--visio-red);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .login-header {
        text-align: left;
    }
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.login-header p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 14px;
    color: var(--gray-900);
    background: var(--gray-50);
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

.input-wrapper input:hover {
    background: white;
}

.input-wrapper input:focus {
    background: white;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--visio-red);
}

.input-otp {
    font-size: 18px;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #111827;
    color: white;
}

.btn-primary:hover {
    background: black;
}

.btn-red {
    background: var(--visio-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.btn-red:hover {
    background: #dc2626;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn svg {
    margin-left: 8px;
}

.btn-text {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--gray-900);
}

.login-secure-badge {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-400);
}

/* ========== DASHBOARD PAGE ========== */
#dashboard-page {
    display: none;
    min-height: 100vh;
    background: var(--gray-50);
}

/* Header */
.dashboard-header {
    background: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

@media (min-width: 640px) {
    .header-inner {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 32px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--gray-900);
}

.header-logo .dot {
    color: var(--visio-red);
}

.header-search {
    display: none;
    align-items: center;
    margin-left: 32px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 6px;
}

@media (min-width: 768px) {
    .header-search {
        display: flex;
    }
}

.header-search svg {
    color: var(--gray-400);
    margin-right: 8px;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--gray-600);
    width: 192px;
}

.header-search input::placeholder {
    color: var(--gray-400);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    position: relative;
    padding: 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s ease;
}

.notification-btn:hover {
    color: var(--visio-red);
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--visio-red);
    border-radius: 50%;
}

.header-divider {
    height: 32px;
    width: 1px;
    background: var(--gray-200);
    margin: 0 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-text {
    text-align: right;
    display: none;
}

@media (min-width: 640px) {
    .user-text {
        display: block;
    }
}

.user-text .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.user-text .role {
    font-size: 12px;
    color: var(--gray-500);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    margin-left: 8px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s ease;
}

.logout-btn:hover {
    color: #dc2626;
}

/* Main Content */
.dashboard-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}

@media (min-width: 640px) {
    .dashboard-main {
        padding: 32px 24px;
    }
}

@media (min-width: 1024px) {
    .dashboard-main {
        padding: 32px;
    }
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

@media (min-width: 640px) {
    .welcome-section h1 {
        font-size: 30px;
    }
}

.welcome-section p {
    margin-top: 8px;
    color: var(--gray-500);
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .systems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* System Card */
.system-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: white;
    padding: 24px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.system-card:not(.passive):hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #fecaca;
    transform: translateY(-4px);
}

.system-card.passive {
    opacity: 0.75;
    cursor: not-allowed;
    filter: grayscale(1);
}

.system-card .bg-decor {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: -32px;
    margin-right: -32px;
    width: 128px;
    height: 128px;
    background: var(--gray-50);
    border-radius: 50%;
    transition: background 0.5s ease;
    z-index: 0;
}

.system-card:not(.passive):hover .bg-decor {
    background: #fef2f2;
}

.system-card-content {
    position: relative;
    z-index: 10;
}

.system-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.system-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background: white;
    color: var(--visio-red);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.system-card:not(.passive):hover .system-icon {
    background: var(--visio-red);
    color: white;
}

.system-card.passive .system-icon {
    background: var(--gray-100);
    color: var(--gray-400);
}

.system-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    background: #fee2e2;
    color: #b91c1c;
}

.system-card.passive .system-badge {
    background: var(--gray-200);
    color: var(--gray-600);
}

.system-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.system-card:not(.passive):hover h3 {
    color: var(--visio-red);
}

.system-card p {
    font-size: 14px;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.system-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    position: relative;
    z-index: 10;
}

.system-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.system-status.active {
    background: #f0fdf4;
    color: #15803d;
}

.system-status.passive {
    background: var(--gray-100);
    color: var(--gray-500);
}

.system-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.system-card:not(.passive):hover .system-action-icon {
    background: #fee2e2;
    color: #dc2626;
}

.system-card.passive .system-action-icon {
    background: var(--gray-100);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.content-left h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Activity Cards Container */
.activity-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1200px) {

    /* Genis ekranda yan yana 2li */
    .activity-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.activity-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.activity-card-header {
    background: var(--gray-50);
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    /* Header kuculmesin */
}

.activity-card-header .icon-wrap {
    padding: 6px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
}

.activity-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Kart Icerigi Scroll */
.activity-list {
    padding: 12px;
    max-height: 300px;
    /* Sabit içerik yüksekliği */
    overflow-y: auto;
    min-height: 150px;
    /* Boş olsa bile formunu korusun */
}

/* Scrollbar Ozellestirme (Liste İçi) */
.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 20px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-400);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: var(--gray-50);
}

.activity-item .status-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.activity-item .status-icon.positive {
    color: #22c55e;
}

.activity-item .status-icon.negative {
    color: #ef4444;
}

.activity-item .status-icon.warning {
    color: #f59e0b;
}

.activity-item .status-icon.neutral {
    color: var(--gray-400);
}

.activity-item .text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    /* Biraz kuculttum ki daha rahat sigsin */
    font-weight: 500;
    color: var(--gray-700);
    overflow: hidden;
    /* text-overflow: ellipsis; -- Kaldirildi, artik alt satira gececek */
    white-space: normal;
    /* Alt satira gecmeyi etkinlestir */
    padding-right: 8px;
    /* Zaman ile arasina mesafe */
}

.activity-item .time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-400);
    font-family: monospace;
    white-space: nowrap;
}

/* Widgets */
.widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Business Metrics */
.business-metrics {
    background: var(--gray-900);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-800);
    overflow: hidden;
    color: white;
}

.metrics-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metrics-header h3 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    position: relative;
    display: flex;
    width: 8px;
    height: 8px;
}

.pulse-dot .ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot .dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.metrics-header .live-badge {
    font-size: 12px;
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--gray-700);
    font-family: monospace;
}

.metrics-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.metric-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.metric-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.metric-label {
    font-size: 12px;
    color: var(--gray-400);
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-100);
}

.metric-value span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

.metric-change {
    display: flex;
    align-items: center;
    font-size: 12px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 2px 6px;
    border-radius: 4px;
}

.metric-change svg {
    margin-right: 4px;
}

.metric-bar {
    width: 64px;
    height: 4px;
    background: var(--gray-700);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
}

.metric-bar .fill {
    height: 100%;
    background: #f59e0b;
}

.metrics-footer {
    background: rgba(31, 41, 55, 0.5);
    padding: 8px 20px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.metrics-footer .label {
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.metrics-footer .storage-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metrics-footer .bar {
    width: 96px;
    height: 6px;
    background: var(--gray-700);
    border-radius: 9999px;
    overflow: hidden;
}

.metrics-footer .bar .fill {
    height: 100%;
    width: 68%;
    background: var(--gray-500);
}

.metrics-footer .percent {
    color: var(--gray-400);
}

/* System Backups */
.system-backups {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.backups-header {
    background: var(--gray-50);
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backups-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.backups-header h3 svg {
    color: #6366f1;
}

.backups-header .auto-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4f46e5;
    background: #eef2ff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e0e7ff;
}

.backups-list {
    flex: 1;
}

.backup-item {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.2s ease;
    cursor: pointer;
}

.backup-item:last-child {
    border-bottom: none;
}

.backup-item:hover {
    background: var(--gray-50);
}

.backup-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.backup-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dcfce7;
}

.backup-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.backup-item:hover .backup-name {
    color: #4f46e5;
}

.backup-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.backup-meta span {
    font-size: 10px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.backup-download {
    padding: 6px;
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.backup-download:hover {
    color: #4f46e5;
    background: #eef2ff;
}

/* Footer */
.dashboard-footer {
    margin-top: 48px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-400);
    padding-bottom: 32px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    transition: all 0.3s ease;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    background: #ecfdf5;
    color: #059669;
}

.toast.error .toast-icon {
    background: #fef2f2;
    color: #dc2626;
}

.toast.info .toast-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

/* Özel CSS Tooltip */
.custom-tooltip {
    position: relative;
    cursor: help;
}

.custom-tooltip::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    /* Üstte görünsün */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1f2937;
    /* Koyu gri */
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: pre-wrap;
    /* Satır atlamalari koru */
    width: max-content;
    max-width: 250px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: left;
    line-height: 1.4;
}

/* Ok işareti */
.custom-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
}

.custom-tooltip:hover::after,
.custom-tooltip:hover::before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.toast-message {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--gray-600);
}

.backup-section-title {
    padding: 10px;
}

/* Bildirim Paneli */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    margin-top: 10px;
    z-index: 50;
    display: none;
    /* JS ile acilacak */
    animation: slideDown 0.2s ease-out;
    overflow: hidden;
}

.notification-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.notification-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.mark-all-read {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f9ff;
    /* Acik mavi */
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
    display: block;
}

/* Scrollbar */
.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}