/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Header and Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1920px;
    margin: 0 auto;
    height: 70px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand i {
    margin-right: 0.5rem;
    color: #667eea;
}

.nav-menu {
    flex: 1;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-link.active {
    background: #667eea;
    color: white;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 16px;
}

.nav-user {
    position: relative;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-name {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #667eea;
    font-weight: 500;
}

.user-name i {
    margin-right: 0.5rem;
}

.admin-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #666;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #666;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(102, 126, 234, 0.05);
}

.card-header h2 {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: #333;
}

.card-header h2 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.card-content {
    padding: 2rem;
}

/* Server List */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-name {
    font-weight: 500;
    color: #333;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.server-status.active {
    color: #43e97b;
}

.server-status.warning {
    color: #ffa726;
}

.server-status.inactive {
    color: #f5576c;
}

.server-status i {
    font-size: 0.75rem;
}

.server-details {
    text-align: right;
}

.server-details small {
    color: #666;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #333;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #666;
}

/* Quick Actions */
.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-actions h2 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.quick-actions h2 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Utility Classes */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .nav-menu {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

/* Login Form Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid #43e97b;
    color: #2e7d32;
}

.alert-error {
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid #f5576c;
    color: #c62828;
}

.alert-warning {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid #ffa726;
    color: #ef6c00;
}

/* Table Styles */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(102, 126, 234, 0.05);
}

.table-header h2 {
    display: flex;
    align-items: center;
    color: #333;
}

.table-header h2 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.table-content {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    background: rgba(102, 126, 234, 0.05);
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: rgba(102, 126, 234, 0.02);
}

/* Search and Filter */
.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
} 

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #666;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal form {
    padding: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* API Key Styles */
.api-key {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.api-key:hover {
    background: rgba(102, 126, 234, 0.2);
}

.api-key-real {
    background: rgba(67, 233, 123, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #2e7d32;
}

.api-key-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.api-key-input input {
    flex: 1;
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.5rem;
    min-width: auto;
}

/* Warning Text */
.warning {
    color: #f5576c;
    font-weight: 500;
    margin: 1rem 0;
}

/* Error Button */
.btn-error {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    color: white;
}

.btn-error:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Code Styles */
code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
} 

/* User Management Styles */
.current-user-badge {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.role-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.admin {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.role-badge.user {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-status.active {
    color: #43e97b;
}

.user-status.recent {
    color: #ffa726;
}

.user-status.inactive {
    color: #666;
}

.user-status i {
    font-size: 0.75rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
}

.checkbox-label:hover .checkmark {
    border-color: #667eea;
}

/* Form Help Text */
small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
} 

/* Log Page Styles */
.header-actions {
    display: flex;
    gap: 1rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-filter {
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    min-width: 150px;
}

.action-filter:focus {
    outline: none;
    border-color: #667eea;
}

.log-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #333;
    font-weight: bold;
}

/* Log Table Styles */
.log-row {
    transition: background 0.3s ease;
}

.log-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

.log-row.log-error {
    background: rgba(245, 87, 108, 0.05);
}

.log-row.log-error:hover {
    background: rgba(245, 87, 108, 0.1);
}

.log-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.log-date {
    font-weight: 500;
    color: #333;
}

.log-time-only {
    font-size: 0.8rem;
    color: #666;
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.action-badge.sync {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.action-badge.error {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.action-badge.login {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.action-badge.logout {
    background: rgba(255, 167, 38, 0.1);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.action-badge.server_added,
.action-badge.server_updated,
.action-badge.server_deleted {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.action-badge.user_added,
.action-badge.user_updated,
.action-badge.user_deleted {
    background: rgba(0, 150, 136, 0.1);
    color: #009688;
    border: 1px solid rgba(0, 150, 136, 0.3);
}

.action-badge.backup_created {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.server-name {
    font-weight: 500;
    color: #667eea;
}

.no-server,
.no-ip {
    color: #999;
    font-style: italic;
}

.log-message {
    max-width: 300px;
    word-wrap: break-word;
}

.ip-address {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Responsive adjustments for logs */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .log-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .log-message {
        max-width: 200px;
    }
} 

/* Backup Page Styles */
.backup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.backup-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.backup-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(102, 126, 234, 0.05);
}

.section-header h2 {
    display: flex;
    align-items: center;
    margin: 0;
    color: #333;
}

.section-header h2 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.section-content {
    padding: 2rem;
}

.backup-form {
    margin-top: 1rem;
}

.backup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.backup-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.backup-info {
    flex: 1;
}

.backup-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.backup-name i {
    color: #667eea;
}

.backup-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.backup-size {
    font-weight: 500;
    color: #667eea;
}

.backup-date {
    color: #666;
}

.backup-actions {
    display: flex;
    gap: 0.5rem;
}

.warning-box {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.warning-box h3 {
    display: flex;
    align-items: center;
    color: #ef6c00;
    margin-bottom: 1rem;
}

.warning-box h3 i {
    margin-right: 0.5rem;
}

.warning-box h4 {
    display: flex;
    align-items: center;
    color: #f5576c;
    margin-bottom: 1rem;
}

.warning-box h4 i {
    margin-right: 0.5rem;
}

.warning-box p {
    color: #333;
    margin-bottom: 1rem;
}

.warning-box ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #333;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

.settings-form {
    max-width: 500px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.settings-form select,
.settings-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.settings-form select:focus,
.settings-form input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive adjustments for backup page */
@media (max-width: 768px) {
    .backup-stats {
        grid-template-columns: 1fr;
    }
    
    .backup-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .backup-actions {
        justify-content: center;
    }
    
    .backup-details {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

/* Installation Page Styles */
.setup-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.setup-info h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #333;
}

.setup-info h3 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.setup-info p {
    margin-bottom: 1rem;
    color: #666;
}

.setup-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #333;
}

.setup-info li {
    margin-bottom: 0.5rem;
}

.credentials {
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.credentials p {
    margin: 0.5rem 0;
    font-family: monospace;
    color: #2e7d32;
}

.credentials strong {
    color: #667eea;
} 

/* Server Groups Styles */
.group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.group-tag {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-groups {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

.group-badge {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.no-group {
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}

.server-list, .user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.server-tag, .user-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.group-users-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.group-users-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.group-users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.group-user-item span {
    font-weight: 500;
    color: #333;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.add-user-form {
    margin-bottom: 1rem;
}

.add-user-form .form-group {
    margin-bottom: 1rem;
}

.add-user-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.add-user-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
} 