
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

a{
    text-decoration: none;
    color: inherit;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .subtitle {
    color: #7f8c8d;
    margin-top: 5px;
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation Menu Styles */
.nav-menu {
    position: relative;
    display: inline-block;
}

.nav-toggle {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.nav-toggle.active {
    background: linear-gradient(45deg, #2980b9, #1f5f8b);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 280px;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.nav-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateX(5px);
}

.nav-item:last-child {
    margin-bottom: 0;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    justify-content: center;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn.btn-success{
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.btn.btn-success:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn.btn-danger{
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.btn.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn.btn-warning{
    background: linear-gradient(45deg, #f39c12, #d35400);
}

.btn.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn.btn-primary{
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.btn.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.cpu-icon { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.ram-icon { background: linear-gradient(45deg, #4834d4, #686de0); }
.disk-icon { background: linear-gradient(45deg, #00d2d3, #01a3a4); }
.network-icon { background: linear-gradient(45deg, #f39c12, #e67e22); }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cpu-progress { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.ram-progress { background: linear-gradient(45deg, #4834d4, #686de0); }
.disk-progress { background: linear-gradient(45deg, #00d2d3, #01a3a4); }

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #7f8c8d;
    font-style: italic;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


.dashboard-container {
    display: flex;
    min-height: 100vh;
}

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

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .subtitle {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 5px;
}

.sidebar-menu {
    padding: 0 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.menu-item.active{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 15px 20px;
}

/* Ana İçerik Alanı */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.header-left .subtitle {
    color: #718096;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

.mobile-menu-btn {
    display: none;
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar-overlay.show {
        display: block;
    }
    .mobile-menu-btn {
        display: block;
    }
}



.card-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}



.card-area {
    padding: 20px;
}
.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
}
.card-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title {
    margin: 0;
    font-size: 1.5em;
}
.card-body {
    padding: 15px;
}
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f8f8f8;
}


.grid{
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
}

.grid .btn{
    min-width: 80px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
}


.text-white{
    color: white;
}

.btn-small{
    padding: 8px 12px;
    font-size: 0.9rem;
    width: auto;
    max-width: 60px;
}


/* Pagination Styles */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-top: 20px;
}
.pagination li {
    margin: 0 5px;
}
.pagination a, .pagination span {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}
.pagination a:hover {
    background: #3498db;
    color: white;
}
.pagination li.active {
    background: #3498db;
    color: white;
    cursor: default;
}

.pagination li.active a {
    background: #3498db;
    color: white;
    pointer-events: none;
}

.pagination li.active span{
    background: #3498db;
    color: white;
    pointer-events: none;
}

.pagination .disabled{
    pointer-events: none;
}

.pagination .disabled a {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}


/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-inline{
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

.form-inline > * {
    width: auto;
    margin: 0;
}
.table-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px auto;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.table-filters form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}



.form-switch .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* Switch görseli */
.form-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}
.form-switch .form-check-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 24px;
    background: #e9ecef;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.form-check-input:checked + .form-check-label {
    background: #4caf50;
}
.form-switch .form-check-label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.form-switch .form-check-input:checked + .form-check-label::after {
    transform: translateX(24px);
}


.alert{
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert.alert-danger{
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}
