/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Container and layout */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    padding: 0 20px;
}

.menu {
    list-style: none;
}

.menu li {
    margin: 0;
}

.menu a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu a:hover,
.menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #fff;
}

.content {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    background: white;
    min-height: 100vh;
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: #666;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
}

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

/* Home page styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* What's My IP styles */
.ip-info {
    max-width: 800px;
}

.ip-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ip-display h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.ip-display p {
    color: white;
    margin-bottom: 10px;
}

/* Fix contrast for gradient backgrounds in anonymity page */
.anonymity-score p {
    color: white;
    margin-bottom: 10px;
}

.details, .location-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.details p, .location-info p {
    margin-bottom: 10px;
    color: #333;
}

/* Whois styles */
.whois-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.whois-result {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.whois-result pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #fcc;
}

/* Proxy list styles */
.filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.proxy-list {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

.type-badge, .anonymity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.type-http {
    background: #e3f2fd;
    color: #1976d2;
}

.type-https {
    background: #e8f5e8;
    color: #388e3c;
}

.anonymity-elite {
    background: #fff3e0;
    color: #f57c00;
}

.anonymity-anonymous {
    background: #f3e5f5;
    color: #7b1fa2;
}

.anonymity-transparent {
    background: #ffebee;
    color: #d32f2f;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 15px;
}

.disclaimer p {
    color: #856404;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ip-display h2 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}