/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login sayfası için özel stiller */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo .material-icons {
    font-size: 40px;
    color: #667eea;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 20px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-field:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field .material-icons {
    color: #999;
    margin-right: 10px;
    font-size: 20px;
}

.input-field input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 16px;
    color: #333;
    outline: none;
}

.input-field input::placeholder {
    color: #999;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

/* Dashboard Stilleri */
.dashboard {
    min-height: 100vh;
    background: #f5f7fa;
    display: flex;
    overflow-x: hidden;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-item .material-icons {
    margin-right: 15px;
    font-size: 20px;
}

.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    background: #f5f7fa;
    position: relative;
    z-index: 1;
    width: calc(100% - 280px);
    max-width: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

/* Kart Stilleri */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Dashboard kartları için özel stiller */
.dashboard .card {
    padding: 35px;
    min-height: 180px;
}

/* İstatistik kartları için özel stiller */
.dashboard .grid:first-of-type .card {
    padding: 30px;
    min-height: 150px;
    text-align: center;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Tablo Stilleri */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Tablo responsive container */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    min-width: 100%;
}

/* Tablo butonlarının responsive davranışı */
.table-responsive .table td:last-child {
    position: sticky;
    right: 0;
    background: var(--surface, white);
    z-index: 5;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Buton Stilleri */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

/* Tablo içindeki buton grupları */
.table .btn {
    margin: 0 3px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.table .btn:first-child {
    margin-left: 0;
}

.table .btn:last-child {
    margin-right: 0;
}

.table .btn .material-icons {
    font-size: 16px;
}

/* Tablo hücre içeriği düzeni */
.table td {
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table td:last-child {
    white-space: nowrap;
    text-align: center;
    max-width: 200px;
    min-width: 150px;
}

/* Uzun metinler için tooltip benzeri davranış */
.table td[title] {
    cursor: help;
}

/* Tablo başlıkları için minimum genişlik */
.table th {
    min-width: 100px;
}

.table th:first-child {
    min-width: 120px;
}

.table th:last-child {
    min-width: 200px;
}

/* Badge'lerin tablo içindeki görünümü */
.table .badge {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* Tablo boş durumu */
.table tbody tr td.text-center {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Tablo satır seçimi */
.table tbody tr.selected {
    background: #e3f2fd !important;
}

/* Tablo yükleme durumu */
.table-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.table-loading .loading {
    margin-right: 10px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* Dashboard özel grid ayarları */
.dashboard .grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

/* İstatistik kartları için özel grid */
.dashboard .grid:first-of-type {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

/* Responsive düzenlemeler */
@media (max-width: 1200px) {
    .dashboard .grid:first-of-type {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard .grid:first-of-type {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard .grid:first-of-type {
        grid-template-columns: 1fr;
    }
}

/* İstatistik Değerleri */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Tablo Responsive - Bu kısım yukarıda daha detaylı tanımlandı */

/* Badge Stilleri */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.badge-primary {
    background: #cce7ff;
    color: #004085;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 32px;
}

/* Tablo butonları için özel boyut */
.table .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 36px;
    height: 36px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    margin-right: 15px;
}

.activity-icon .material-icons {
    color: #667eea;
    font-size: 20px;
}

.activity-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.activity-meta {
    font-size: 12px;
    color: #666;
}

/* Critical Status */
.critical-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-item .material-icons {
    font-size: 24px;
}

/* Ek Utility Sınıfları */
.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 20px;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state .material-icons {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Bildirim Stilleri */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

/* Monitoring sayfasındaki notification için özel stil */
.notification[style*="position: relative"] {
    position: relative !important;
    top: auto;
    right: auto;
    transform: none;
    margin-bottom: 20px;
    max-width: none;
    z-index: 1;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification .material-icons {
    font-size: 20px;
}

.notification-success .material-icons {
    color: #28a745;
}

.notification-error .material-icons {
    color: #dc3545;
}

.notification-warning .material-icons {
    color: #ffc107;
}

.notification-info .material-icons {
    color: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    margin-left: auto;
    padding: 0;
    font-size: 16px;
}

.notification-close:hover {
    color: #333;
}

/* Modal Stilleri */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 24px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        left: 0;
        top: 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }

    .login-card {
        padding: 30px 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px;
        min-height: auto;
    }

    .dashboard .card {
        padding: 25px;
        min-height: auto;
    }

    .dashboard .grid:first-of-type .card {
        padding: 20px;
        min-height: auto;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .user-menu {
        align-self: flex-end;
    }

    .quick-actions {
        flex-direction: column;
    }

    .table-responsive {
        font-size: 12px;
        border: none;
    }

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

    .btn-sm {
        padding: 6px 12px;
        font-size: 11px;
    }

    .table .btn {
        margin: 0 2px;
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .table .badge {
        min-width: 50px;
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* VM Talepleri menüsü için sarı renk */
.nav-item.vm-requests {
    background: #fff3cd;
    color: #856404 !important;
}

.nav-item.vm-requests.active {
    background: #ffe066;
    color: #856404 !important;
}

/* Monitoring menü özel renkleri */
.nav-item[style*="--menu-color"] {
    --menu-color: #667eea;
    position: relative;
}

.nav-item[style*="--menu-color"]:hover {
    background: linear-gradient(135deg, var(--menu-color) 0%, color-mix(in srgb, var(--menu-color) 80%, white) 100%);
    color: white;
    transform: translateX(5px);
}

.nav-item[style*="--menu-color"].active {
    background: linear-gradient(135deg, var(--menu-color) 0%, color-mix(in srgb, var(--menu-color) 80%, white) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Monitoring menüsü için özel stil - diğer menüler gibi */
.nav-item.monitoring-menu {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: white;
    border-left: 3px solid #ff6b35;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 15px 20px;
}

.nav-item.monitoring-menu:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
    border-left-color: #ff5722;
}

.nav-item.monitoring-menu.active {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
    border-left-color: #ff5722;
}

.nav-item.monitoring-menu .material-icons {
    color: white;
    margin-right: 15px;
    font-size: 20px;
}

.nav-item.monitoring-menu:hover .material-icons,
.nav-item.monitoring-menu.active .material-icons {
    color: white;
}

/* Monitoring Sayfası Stilleri */
.filter-form {
    padding: 20px 0;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.filter-group:last-child {
    flex: 2;
    min-width: 300px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-group .btn {
    margin-top: 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 80px;
}

.filter-group input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* Performans optimizasyonları */
.dashboard {
    contain: layout style paint;
}

.main-content {
    contain: layout style;
    will-change: scroll-position;
}

.card {
    contain: layout style;
}

.table-responsive {
    contain: layout style;
    max-height: 600px;
    overflow-y: auto;
}

/* Chart container optimizasyonu */
canvas#categoryChart {
    max-height: 300px;
    contain: layout style paint;
}

/* Loading durumu */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading .material-icons {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Tablo performans optimizasyonu */
.table {
    table-layout: fixed;
    contain: layout style;
}

.table th,
.table td {
    contain: layout style;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Grid performans optimizasyonu */
.grid {
    contain: layout style;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* İstatistik kartları için özel grid */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stats-grid .card {
    padding: 15px;
    min-height: 100px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.stats-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stats-grid .card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stats-grid .card-title {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-grid .card-header .material-icons {
    font-size: 20px;
    color: #667eea;
}

.stats-grid .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .stats-grid .card {
        padding: 12px;
        min-height: 90px;
    }

    .stats-grid .card-title {
        font-size: 12px;
    }

    .stats-grid .card-header .material-icons {
        font-size: 18px;
    }

    .stats-grid .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stats-grid .card {
        padding: 15px;
        min-height: 100px;
    }

    .stats-grid .card-title {
        font-size: 13px;
    }

    .stats-grid .card-header .material-icons {
        font-size: 20px;
    }

    .stats-grid .stat-value {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stats-grid .card {
        padding: 12px;
        min-height: 80px;
    }

    .stats-grid .card-header {
        flex-direction: column;
        gap: 5px;
    }

    .stats-grid .card-title {
        font-size: 11px;
    }

    .stats-grid .card-header .material-icons {
        font-size: 16px;
    }

    .stats-grid .stat-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stats-grid .card {
        padding: 15px;
        min-height: 90px;
    }

    .stats-grid .card-title {
        font-size: 12px;
    }

    .stats-grid .card-header .material-icons {
        font-size: 18px;
    }

    .stats-grid .stat-value {
        font-size: 20px;
    }
}

/* Cihaz Form Stilleri */
.device-form {
    padding: 20px 0;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #667eea;
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group label::after {
    content: ' *';
    color: #e74c3c;
    display: none;
}

.form-group label[for*="name"]::after,
.form-group label[for*="ip_address"]::after,
.form-group label[for*="category_id"]::after,
.form-group label[for*="brand_id"]::after,
.form-group label[for*="connection_type"]::after {
    display: inline;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.connection-fields {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

/* Alert List Stilleri */
.alert-list {
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.alert-item.critical {
    background: #fdf2f2;
    border-left-color: #e74c3c;
}

.alert-item.high {
    background: #fef7e6;
    border-left-color: #f39c12;
}

.alert-item.medium {
    background: #f0f8ff;
    border-left-color: #3498db;
}

.alert-item.low {
    background: #f0fff4;
    border-left-color: #2ecc71;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-icon .material-icons {
    font-size: 24px;
    color: #666;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.alert-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.alert-time {
    color: #999;
    font-size: 12px;
}

/* Cihaz Detay Sayfası Stilleri */
.device-info,
.connection-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.info-row span {
    color: #666;
    text-align: right;
    flex: 1;
}

.info-row .badge {
    margin-left: auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5a6fd8;
}

.breadcrumb .separator {
    color: #666;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        min-width: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .alert-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Interface styles */
.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.interface-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #667eea;
}

.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.interface-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.interface-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-row span:first-child {
    color: #666;
    font-weight: 500;
}

.detail-row span:last-child {
    color: #333;
    font-weight: 600;
}

/* Syslog and Trap styles */
.syslog-list,
.trap-list {
    max-height: 400px;
    overflow-y: auto;
}

.syslog-item,
.trap-item {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #667eea;
}

.syslog-header,
.trap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.syslog-time,
.trap-time {
    font-size: 12px;
    color: #999;
}

.syslog-message,
.trap-message {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state::before {
    content: '📋';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Text color utilities */
.text-success {
    color: #27ae60;
}

.text-warning {
    color: #f39c12;
}

.text-danger {
    color: #e74c3c;
}

.text-info {
    color: #3498db;
}

/* Device Status Grid */
.device-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #667eea;
    transition: all 0.3s ease;
}

.status-icon.online {
    background: #d4edda;
    color: #27ae60;
}

.status-icon.offline {
    background: #f8d7da;
    color: #e74c3c;
}

.status-icon.warning {
    background: #fff3cd;
    color: #f39c12;
}

.status-icon .material-icons {
    font-size: 24px;
}

.status-info {
    flex: 1;
}

.status-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: block;
}

.status-value.online {
    color: #27ae60;
}

.status-value.offline {
    color: #e74c3c;
}

.status-value.warning {
    color: #f39c12;
}

.status-value.critical {
    color: #e74c3c;
}

/* Responsive status grid */
@media (max-width: 1200px) {
    .device-status-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .status-card {
        padding: 15px;
    }

    .status-icon {
        width: 40px;
        height: 40px;
    }

    .status-icon .material-icons {
        font-size: 20px;
    }

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

@media (max-width: 768px) {
    .device-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .status-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .status-icon {
        width: 35px;
        height: 35px;
    }

    .status-icon .material-icons {
        font-size: 18px;
    }

    .status-info h4 {
        font-size: 12px;
    }

    .status-value {
        font-size: 14px;
    }
}

/* Dummy data notice */
.dummy-data-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-content .material-icons {
    color: #2196f3;
    font-size: 20px;
    margin-top: 2px;
}

.notice-content strong {
    color: #1976d2;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.notice-content p {
    color: #424242;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Tab System Styles */
.tab-navigation {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #e9ecef;
    margin: -20px -20px 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn .material-icons {
    font-size: 18px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tab-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.chart-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive tab navigation */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
        gap: 2px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .tab-btn .material-icons {
        font-size: 16px;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tab-header h3 {
        font-size: 16px;
    }
}