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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f6fa;
    color: #2d3436;
    line-height: 1.6;
}

.nav-header {
    background: #1e272e;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #dfe6e9;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-logout {
    color: #ff7675;
}

.nav-form {
    display: inline;
}

.nav-notification {
    position: relative;
}

.notif-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 7px;
    margin-left: 6px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e272e;
}

.page-header p {
    color: #636e72;
    margin-top: 4px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #1e272e;
}

.text-muted {
    color: #636e72;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert a {
    font-weight: 600;
}

.alert-info {
    background: #dfe6e9;
    color: #2d3436;
}

.alert-warning {
    background: #ffeaa7;
    color: #6c5b00;
}

.alert-danger {
    background: #fab1a0;
    color: #6b0000;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}

.btn:hover {
    opacity: 0.88;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary {
    background: #0984e3;
    color: #fff;
}

.btn-secondary {
    background: #dfe6e9;
    color: #2d3436;
}

.btn-warning {
    background: #fdcb6e;
    color: #2d3436;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-google {
    background: #fff;
    color: #2d3436;
    border: 1px solid #dfe6e9;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    justify-content: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.login-title {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1e272e;
}

.login-subtitle {
    color: #636e72;
    margin-bottom: 32px;
    font-size: 14px;
}

.vm-card {
    padding: 28px;
}

.vm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vm-status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.status-running, .status-ready {
    background: #00b894;
}

.status-starting, .status-rebooting, .status-provisioning, .status-creating {
    background: #fdcb6e;
}

.status-stopped, .status-deallocated, .status-deleted {
    background: #b2bec3;
}

.status-failed {
    background: #e74c3c;
}

.vm-tier-badge {
    background: #dfe6e9;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2d3436;
}

.vm-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.vm-detail-row {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: #f5f6fa;
    border-radius: 6px;
}

.vm-detail-label {
    font-size: 12px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vm-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}

.vm-status-text {
    font-weight: 600;
}

.vm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.tier-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.tier-card:hover {
    border-color: #0984e3;
}

.tier-card.selected {
    border-color: #0984e3;
}

.tier-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-spec {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.tier-spec span {
    color: #636e72;
    font-weight: 600;
}

.tier-radio {
    margin-top: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

.form-input {
    padding: 10px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}

.form-input:focus {
    border-color: #0984e3;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-row .form-input {
    flex: 1;
    min-width: 120px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #dfe6e9;
    color: #636e72;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tr:hover {
    background: #f5f6fa;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-section h2 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.firewall-create {
    background: #f5f6fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.firewall-create h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #636e72;
}

.clipboard-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dfe6e9;
    font-size: 12px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: #dfe6e9;
    color: #2d3436;
}

.notification-type-vm_ready {
    background: #00b894;
    color: #fff;
}

.notification-type-vm_rejected, .notification-type-vm_deleted {
    background: #e74c3c;
    color: #fff;
}

.notification-type-password_reset {
    background: #fdcb6e;
    color: #2d3436;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: #636e72;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
}

.error-card {
    text-align: center;
    max-width: 400px;
}

.error-title {
    font-size: 48px;
    color: #e74c3c;
}

.error-message {
    color: #636e72;
    margin: 12px 0 24px;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s;
}

.toast-success {
    background: #00b894;
}

.toast-error {
    background: #e74c3c;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .nav-header {
        height: auto;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .vm-actions .btn {
        width: 100%;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th, .data-table td {
        padding: 6px 8px;
    }
}
