/**
 * VPN Checker Styles
 */

.vpn-checker-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#vpn-checker-form {
    margin-bottom: 20px;
}

/* .input-group is handled globally, specific margin might be form-group's job */
/*
.input-group {
    display: flex;
    margin-bottom: 15px; 
}
*/

#vpn-checker-form input[type="text"].form-control {
    flex: 1;
    /* padding, border, font-size should come from .form-control global */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    /* height/min-height from global .form-control */
}

/* Assumes .submit-button also has .btn .btn-primary (or similar) in HTML */
.submit-button {
    /* padding, background-color, color, border, font-size from .btn global */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /* height should align with input via .btn global styles */
}

/* Assumes .secondary-button also has .btn .btn-secondary (or similar) in HTML */
.secondary-button {
    /* padding, background-color, color, border, font-size from .btn global */
    /* Default border-radius from .btn is fine if not part of an input group */
}

#loading-indicator {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

.vpn-result {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vpn-result h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-copy-sm {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.btn-copy-sm img {
    width: 16px;
    height: 16px;
}

.result-badge {
    display: inline-block;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
}

.vpn-detected {
    background-color: #ffdddd;
    color: #d32f2f;
    border: 1px solid #ffcccc;
}

.no-vpn {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.vpn-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.vpn-details td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.vpn-details tr:last-child td {
    border-bottom: none;
}

.vpn-details td:first-child {
    font-weight: bold;
    width: 40%;
}

@media (max-width: 600px) {
    #vpn-checker-form .input-group {
        flex-direction: column;
    }
    
    #vpn-checker-form .input-group input[type="text"].form-control {
        border-radius: var(--border-radius-standard); /* Revert to standard radius when stacked */
        margin-bottom: 10px;
    }
    
    #vpn-checker-form .input-group .submit-button.btn {
        border-radius: var(--border-radius-standard); /* Revert to standard radius when stacked */
    }
}

/* General styles */
.vpn-check-results {
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

/* Result summary styling */
.result-summary {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.vpn-detected {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
}

.vpn-not-detected {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
}

.status-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.vpn-detected .status-icon {
    color: #ffc107;
}

.vpn-not-detected .status-icon {
    color: #28a745;
}

.status-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

/* Detailed results table */
.detailed-results {
    margin-bottom: 20px;
}

.detection-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.detected {
    background-color: #fff3cd;
    color: #856404;
}

.not-detected {
    background-color: #d4edda;
    color: #155724;
}

/* Toggle buttons */
.view-toggle-buttons {
    margin: 20px 0;
}

/* Collapsible sections */
.collapsible-section {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-trigger {
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-trigger:hover {
    background-color: #e9ecef;
}

.toggle-icon {
    font-size: 1.2rem;
}

.collapsible-content {
    padding: 15px;
    display: none; /* Will be controlled by JS */
}

/* Data explainer table */
.data-explainer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.data-explainer-table th, 
.data-explainer-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.data-explainer-table th {
    background-color: #f0f0f0;
}

/* Progress bar for loading state */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    animation: progress 2s linear infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
} 