/*
 * Enhanced IP Finder - Main Stylesheet
 * Provides styling for the IP detection application
 */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Make the "IP" pop inside the "Just the tIP" wordmark */
.ip-accent {
    color: #3498db;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.35);
}

.privacy {
    margin-top: 14px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
}

h2 {
    color: #333;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ip-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.ip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ip-row-noborder {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: none;
    margin-top: 10px;
}

.ip-label {
    font-weight: bold;
    color: #333;
}

.ip-value {
    font-family: monospace;
    font-size: 16px;
    color: #2c3e50;
}

.hostname {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

.proxy-warning {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
}

.location-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2ecc71;
}

.refresh-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto;
    width: 200px;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.info-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

.note-text {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.error {
    color: #e74c3c;
    font-style: italic;
}

#loading {
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3498db;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.client-side {
    background-color: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.tab.active {
    background-color: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.external-iframe {
    width: 100%;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.alternative-method {
    margin-top: 20px;
}

.alternative-title {
    font-weight: bold;
}

/* Display utility classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Initial display state for elements that will be toggled */
#browser-ip-result {
    display: none;
}

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