* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-card h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

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

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.result-box pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Hız Testi Özel Stilleri */
.speed-test {
    text-align: center;
}

.speed-display {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
}

.speed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speed-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.speed-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* QR Kod Özel Stilleri */
.qr-container {
    text-align: center;
    margin-top: 20px;
}

#qr-canvas {
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* IP Bilgisi Özel Stilleri */
.ip-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ip-info-item:last-child {
    border-bottom: none;
}

.ip-info-label {
    font-weight: 600;
    color: #4a5568;
}

.ip-info-value {
    color: #2d3748;
}

/* Port Tarama Sonuçları */
.port-open {
    color: #38a169;
    font-weight: 600;
}

.port-closed {
    color: #e53e3e;
    font-weight: 600;
}

.port-filtered {
    color: #d69e2e;
    font-weight: 600;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .speed-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .speed-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Harita Modal Stilleri */
.map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.map-modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.map-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.map-close:hover,
.map-close:focus {
    color: #000;
}

.map-container-modal {
    width: 100%;
    height: calc(100% - 60px);
    border-radius: 10px;
    overflow: hidden;
}

.map-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 14px;
}

.map-button {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.map-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(56, 161, 105, 0.4);
}

/* Animasyonlar */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

.success {
    border-left: 4px solid #38a169;
    background-color: #f0fff4;
}

.error {
    border-left: 4px solid #e53e3e;
    background-color: #fff5f5;
}

.warning {
    border-left: 4px solid #d69e2e;
    background-color: #fffbeb;
}