/* What is My IP Tool Styles */

/* Hero Section Styles */
.ip-hero {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ip-hero h1 {
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.ip-hero .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Main Container Styles */
.ip-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Current IP Display */
.ip-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.current-ip {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.ip-status {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.btn-detect {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-detect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Form Styles */
.ip-form {
    margin-bottom: 1.5rem;
}

.ip-form h4 {
    color: #0056b3;
    font-weight: 600;
}

.ip-form .form-label {
    font-weight: 500;
}

.btn-search {
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

/* Loading Styles */
.ip-loading {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Error Styles */
.ip-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Results Styles */
.ip-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.section-title {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

/* Tab Styles */
.tab-container {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    margin: 0;
}

.tab-link {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #6c757d;
    background: none;
    border: none;
}

.tab-link:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-link.active {
    background: white;
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

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

/* Table Styles */
.ip-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.ip-table th {
    background: #f8f9fa;
    padding: 0.75rem;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
    text-align: left;
}

.ip-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.ip-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Security Analysis Styles */
.security-analysis h5 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-weight: 600;
}

.risk-level-container {
    margin-bottom: 1rem;
}

.risk-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.risk-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.risk-low {
    background: #d4edda;
    color: #155724;
}

.risk-medium {
    background: #fff3cd;
    color: #856404;
}

.risk-high {
    background: #f8d7da;
    color: #721c24;
}

.security-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.security-recommendations ul {
    margin: 0;
    padding-left: 1.5rem;
}

.security-recommendations li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Dark Mode Support */
[data-theme="dark"] .ip-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

[data-theme="dark"] .ip-container {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid var(--border-color, #334155);
}

[data-theme="dark"] .ip-display {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .current-ip {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .ip-status {
    color: var(--text-secondary, #9ca3af);
}

[data-theme="dark"] .ip-form h4 {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .ip-form .form-label {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .ip-loading {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid var(--border-color, #334155);
}

[data-theme="dark"] .ip-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
}

[data-theme="dark"] .ip-results {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid var(--border-color, #334155);
}

[data-theme="dark"] .section-title {
    color: var(--accent-color, #60a5fa);
    background: var(--bg-secondary, #374151);
}

[data-theme="dark"] .tab-navigation {
    background: var(--bg-secondary, #374151);
    border-bottom-color: var(--border-color, #4b5563);
}

[data-theme="dark"] .tab-link {
    color: var(--text-secondary, #9ca3af);
}

[data-theme="dark"] .tab-link:hover {
    background: var(--bg-tertiary, #4b5563);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .tab-link.active {
    background: var(--card-bg, #1e293b);
    color: var(--accent-color, #60a5fa);
    border-bottom-color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .tab-content {
    background-color: var(--card-bg, #1e293b);
}

[data-theme="dark"] .ip-table th {
    background: var(--bg-secondary, #374151);
    color: var(--text-primary, #e2e8f0);
    border-color: var(--border-color, #4b5563);
}

[data-theme="dark"] .ip-table td {
    border-color: var(--border-color, #4b5563);
    color: var(--text-secondary, #9ca3af);
}

[data-theme="dark"] .ip-table tr:nth-child(even) {
    background: var(--bg-secondary, #374151);
}

[data-theme="dark"] .security-analysis h5 {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .risk-label {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .risk-low {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .risk-medium {
    background: #78350f;
    color: #fbbf24;
}

[data-theme="dark"] .risk-high {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .security-indicator {
    background: var(--bg-secondary, #374151);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .security-recommendations li {
    color: var(--text-secondary, #9ca3af);
}

[data-theme="dark"] .card {
    background-color: var(--card-bg, #1e293b) !important;
    border-color: var(--border-color, #334155) !important;
}

[data-theme="dark"] .card-body {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg, #1e293b) !important;
    border-color: var(--border-color, #334155) !important;
    color: var(--text-primary, #e2e8f0) !important;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--bg-secondary, #374151) !important;
    color: var(--accent-color, #60a5fa) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ip-hero h1 {
        font-size: 1.8rem;
    }
    
    .current-ip {
        font-size: 2rem;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-link {
        flex: 1 1 50%;
        min-width: 120px;
    }
    
    .ip-container {
        padding: 1rem;
    }
    
    .ip-display {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .tab-link {
        flex: 1 1 100%;
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .current-ip {
        font-size: 1.5rem;
    }
    
    .ip-hero {
        padding: 2rem 0;
    }
    
    .ip-hero h1 {
        font-size: 1.5rem;
    }
}
