/* Tools Page Styles */
/* Tools Page Styles */
.tools-section {
    padding: 8rem 5% 4rem;
    min-height: 100vh;
    /* Use global background from body/style.css */
    background: transparent;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.tool-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.tool-title {
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

/* Forms */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-label {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: -5px;
}

.tool-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.tool-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
    margin-top: 1rem;
}

.tool-btn:hover {
    background: white;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Results Display */
.result-box {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    font-family: 'Courier New', monospace;
    display: none;
    /* Hidden by default */
}

.result-box.active {
    display: block;
    animation: fadeIn 0.5s;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}

#my-public-ip {
    word-break: break-all;
    font-size: 1.2rem;
    /* Reduced from 1.5rem to fit IPv6 */
    line-height: 1.2;
    margin-bottom: 15px;
}

.result-label {
    color: #888;
}

.result-value {
    color: #ffffff;
    /* White text */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    text-align: right;
    /* Force text to right */
    flex: 1;
    /* Take remaining space */
    padding-left: 1rem;
    /* Space from label */
    word-break: break-word;
    /* Wrap long text properly */
}

/* Map placeholder */
#map-container {
    width: 100%;
    height: 150px;
    background: #000;
    margin-top: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
}