:root {
    --proxy-orange: #FF6633;
    --proxy-orange-light: #FF8C66;
    --proxy-orange-dark: #E65529;
    --proxy-dark: #1a1a1a;
    --proxy-gray: #f8f9fa;
    --proxy-red: #dc3545;
    --proxy-green: #28a745;
    --card-radius: 12px;
    --card-shadow: 0 4px 20px 0 rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--proxy-dark);
    min-height: 100vh;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f7 100%);
    border-bottom: 4px solid var(--proxy-orange);
    box-shadow: 0 4px 20px rgba(255, 102, 51, 0.1);
}

.logo-header {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.main-title {
    font-size: 1.8em;
    background: linear-gradient(135deg, var(--proxy-orange) 0%, var(--proxy-orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logout-button {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1.5px solid rgba(255,102,51,0.4);
    border-radius: 8px;
    color: var(--proxy-orange);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.logout-button:hover {
    background: rgba(255,102,51,0.08);
    border-color: var(--proxy-orange);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 102, 51, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(255, 102, 51, 0.15);
    transform: translateY(-2px);
}

.card-title {
    color: var(--proxy-dark);
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--proxy-orange) 0%, var(--proxy-orange-dark) 100%);
    border-radius: 2px;
}

.form-card {
    text-align: left;
}

.form-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

input {
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    flex: 1;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:hover {
    border-color: var(--proxy-orange-light);
    background: white;
}

input:focus {
    outline: none;
    border-color: var(--proxy-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 102, 51, 0.1);
}

input::placeholder {
    color: #adb5bd;
}

.main-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--proxy-orange) 0%, var(--proxy-orange-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.main-btn:hover::before {
    left: 100%;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 51, 0.4);
}

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

.instances-card {
    overflow: visible;
}

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

.instances-header h2 {
    margin: 0;
}

.clean-all-button {
    background-color: var(--proxy-red);
    padding: 8px 18px;
    font-size: 15px;
    border-radius: 5px;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.clean-all-button:hover {
    background-color: #c82333;
}

.refresh-info {
    color: #999;
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff9f7 100%);
    font-weight: 700;
    color: var(--proxy-dark);
    font-size: 11px;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--proxy-orange);
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(135deg, #fff9f7 0%, #ffffff 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(255, 102, 51, 0.1);
}

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

.status-running {
    color: var(--proxy-green);
    font-weight: 600;
}

.status-stopped {
    color: var(--proxy-red);
    font-weight: 600;
}

.update-button, .stop-button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: inline-block;
}

.update-button {
    background: linear-gradient(135deg, var(--proxy-green) 0%, #218838 100%);
}

.update-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.stop-button {
    background: linear-gradient(135deg, var(--proxy-red) 0%, #c82333 100%);
}

.stop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#status {
    margin: 20px 0 0 0;
    padding: 12px;
    border-radius: 4px;
}

#status p {
    margin: 5px 0;
}

.success {
    color: var(--proxy-green);
}

.error {
    color: var(--proxy-red);
}

.container-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container-type img {
    height: 28px;
    width: auto;
}

.instance-details {
    margin-top: 5px;
    font-size: 0.95em;
    color: #666;
}

.instance-details small {
    display: inline-block;
    margin-right: 15px;
}

.features-card {
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
    font-size: 1.15em;
}

.checkmark {
    color: var(--proxy-orange);
    font-size: 1.2em;
    margin-right: 8px;
    font-weight: bold;
}

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

h1 {
    font-size: 2.5em;
    color: var(--proxy-orange);
    margin-bottom: 30px;
    font-weight: 300;
}

h2 {
    font-size: 1.8em;
    color: var(--proxy-dark);
    margin: 40px 0 20px;
    font-weight: 300;
}

.form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    text-align: center;
}

.text-center {
    text-align: center;
}

.features ul {
    display: inline-block;
    text-align: left;
}

/* Button styles defined above */

.instance-details {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.instance-details small {
    display: inline-block;
    margin-right: 15px;
}

/* Update table styles to accommodate more info */
td {
    vertical-align: top;
    padding: 20px 15px;
}

.refresh-info {
    display: block;
    color: #666;
    margin: 10px 0;
    font-style: italic;
}

.container-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container-type img {
    height: 28px;
    width: auto;
}

/* Verwijder deze stijlen */
.tech-logos,
.tech-logo {
    /* Deze classes kunnen weg */
}

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

.admin-buttons {
    display: flex;
    gap: 8px;
}

.cleanup-button, .clean-all-button, .update-all-button {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.update-all-button {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.update-all-button:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.cleanup-button {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
}

.cleanup-button:hover {
    background: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.clean-all-button {
    background: linear-gradient(135deg, var(--proxy-red) 0%, #c82333 100%);
    color: white;
}

.clean-all-button:hover {
    background-color: #c82333;
}

.center-header {
    justify-content: center;
    text-align: center;
}

/* Trial Status Badges */
.trial-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    border: 2px solid currentColor;
    position: relative;
    overflow: hidden;
}

.trial-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.trial-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.trial-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border-color: #ffc107;
}

.trial-expired {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #dc3545;
}

/* Row highlighting based on trial status */
.row-expired {
    background-color: #fff5f5 !important;
}

.row-warning {
    background-color: #fffef5 !important;
}

/* Deployment Success Box */
.deployment-success {
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    border: 3px solid var(--proxy-green);
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
    text-align: left;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.deployment-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--proxy-green), #4caf50, var(--proxy-green));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.deployment-success h3 {
    color: var(--proxy-green);
    margin-top: 0;
    font-size: 1.6em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deployment-success p {
    margin: 10px 0;
    font-size: 1.05em;
}

.credentials-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.credentials-box:hover {
    border-color: var(--proxy-orange-light);
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.1);
}

.credentials-box h4 {
    color: var(--proxy-orange);
    margin-top: 0;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credentials-box.admin-creds {
    background: linear-gradient(135deg, #f0fff4 0%, #dcf5e8 100%);
    border: 2px solid var(--proxy-green);
}

.credentials-box.admin-creds h4 {
    color: var(--proxy-green);
}

.credentials-box code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #d63384;
}

.copy-button {
    background: linear-gradient(135deg, var(--proxy-green) 0%, #218838 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

.warning-text {
    color: #856404;
    font-weight: 600;
    font-style: italic;
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.info-text {
    color: #155724;
    font-weight: 600;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-top: 10px;
}

.status-expired {
    color: var(--proxy-red);
    font-weight: 600;
}

/* Stats Dashboard */
.stats-card {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f7 100%) !important;
}

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

.stat-box {
    background: white;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: currentColor;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-total {
    color: var(--proxy-orange);
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

.stat-active {
    color: var(--proxy-green);
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.stat-warning-stat {
    color: #ff9800;
    background: linear-gradient(135deg, #fffbf5 0%, #ffffff 100%);
}

.stat-expired-stat {
    color: var(--proxy-red);
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-total .stat-number {
    color: var(--proxy-orange);
}

.stat-active .stat-number {
    color: var(--proxy-green);
}

.stat-warning-stat .stat-number {
    color: #ffc107;
}

.stat-expired-stat .stat-number {
    color: var(--proxy-red);
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Loading State */
.loading-state {
    background: linear-gradient(135deg, #fff9f7 0%, #ffffff 100%);
    border: 3px solid var(--proxy-orange);
    border-radius: 16px;
    padding: 40px;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 102, 51, 0.2);
}

/* Deployment Logs */
.deployment-logs {
    margin-top: 24px;
    text-align: left;
}

.log-header {
    font-weight: 700;
    font-size: 14px;
    color: var(--proxy-dark);
    margin-bottom: 12px;
}

.log-content {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-line {
    color: #d4d4d4;
    padding: 2px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar for logs */
.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
    background: var(--proxy-orange);
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
    background: var(--proxy-orange-dark);
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--proxy-orange);
    border-right: 5px solid var(--proxy-orange-light);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.2);
}

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

.loading-state p {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.loading-state small {
    color: #666;
    font-style: italic;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid var(--proxy-red);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: var(--proxy-red);
    font-weight: 600;
    font-size: 1.1em;
}

/* Disabled button state */
.main-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Tech Stack Card */
.tech-stack-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 40px;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.tech-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--proxy-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 102, 51, 0.15);
}

.tech-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.tech-item h3 {
    color: var(--proxy-orange);
    font-size: 1.3em;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.tech-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
} 
/* Instance Details - Compact */
.instance-details {
    margin-top: 4px;
    font-size: 11px;
    color: #868e96;
}

.instance-details small {
    display: block;
    margin-top: 2px;
}

.container-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.container-type img {
    height: 28px;
    width: auto;
}

/* Resource Dashboard */
.resources-dashboard {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 32px !important;
}

.dashboard-gauges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 24px 0;
}

/* Per-server resource blocks */
.server-resources-grid {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.server-resource-block {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e9ecef;
}

.server-resource-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--proxy-dark);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.resource-bar-group {
    display: grid;
    grid-template-columns: 70px 1fr 110px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #495057;
}

.resource-bar-bg {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    background: var(--proxy-orange);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.resource-bar-fill.warning { background: #ffc107; }
.resource-bar-fill.danger  { background: var(--proxy-red); }

.server-unreachable {
    color: #6c757d;
    font-style: italic;
    font-size: 13px;
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--proxy-dark);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.gauge {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: var(--proxy-orange);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.gauge-fill.warning {
    stroke: #ffc107;
}

.gauge-fill.danger {
    stroke: var(--proxy-red);
}

.gauge-text {
    transform: rotate(90deg);
    transform-origin: center;
    font-size: 32px;
    font-weight: 700;
    fill: var(--proxy-dark);
    text-anchor: middle;
}

.gauge-subtext {
    transform: rotate(90deg);
    transform-origin: center;
    font-size: 12px;
    font-weight: 600;
    fill: #6c757d;
    text-anchor: middle;
}

/* Instance Stats Section */
.instance-stats-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--proxy-dark);
    margin-bottom: 16px;
}

.instance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.no-instances {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #6c757d;
    font-style: italic;
}

.instance-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.instance-stat-card:hover {
    border-color: var(--proxy-orange);
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.15);
    transform: translateY(-2px);
}

.instance-stat-header {
    font-weight: 700;
    font-size: 16px;
    color: var(--proxy-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instance-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}

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

.stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--proxy-dark);
}

.stat-value.high {
    color: var(--proxy-red);
}

.stat-value.medium {
    color: #ffc107;
}

.stat-value.low {
    color: var(--proxy-green);
}

.mini-progress {
    width: 80px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-left: 8px;
}

.mini-progress-bar {
    height: 100%;
    background: var(--proxy-orange);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.resource-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.resource-status.ok {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.resource-status.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

.resource-status.danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Update Progress Bar */
.update-progress {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--proxy-dark);
}

.progress-bar-container {
    height: 32px;
    background: #f1f3f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 16px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.progress-details {
    font-size: 13px;
    color: #495057;
    max-height: 150px;
    overflow-y: auto;
}

.progress-details div {
    padding: 6px 12px;
    margin: 4px 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.progress-details div.success {
    border-left-color: var(--proxy-green);
}

.progress-details div.error {
    border-left-color: var(--proxy-red);
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    border: 3px solid var(--proxy-red);
    border-radius: 12px;
    padding: 24px;
    margin: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.2);
}

.disclaimer-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.disclaimer-text {
    color: #721c24;
    line-height: 1.6;
    font-size: 14px;
}

.disclaimer-text strong {
    color: var(--proxy-red);
    font-weight: 700;
}

/* Audit log */
.audit-card { padding: 24px; }

.audit-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f3f5;
}

.audit-entry:last-child { border-bottom: none; }

.audit-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.audit-dot.green  { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.15); }
.audit-dot.orange { background: #fd7e14; box-shadow: 0 0 0 3px rgba(253,126,20,.15); }
.audit-dot.red    { background: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,.15); }
.audit-dot.blue   { background: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,.15); }
.audit-dot.gray   { background: #adb5bd; }

.audit-text {
    flex: 1;
    font-size: 13px;
    color: #212529;
    line-height: 1.4;
}

.audit-text strong { color: var(--proxy-dark); }

.audit-ts {
    font-size: 12px;
    color: #adb5bd;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.audit-empty { color: #6c757d; font-style: italic; padding: 16px 0; font-size: 13px; }
