/* Global Styles */
body {
    font-family: -apple-system, system-ui, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #1c1e21;
    line-height: 1.4;
}

header {
    background-color: #000;
    color: white;
    width: 100%;
    padding: 20px 0;
    text-align: center;
}

h1 { margin: 0; font-size: 1.8rem; }

/* Wrapper for centering content */
.container {
    max-width: 900px;
    width: 95%;
    margin: 40px auto;
}

.echo-container { max-width: 800px; }

/* Universal Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    width: 100%;
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}

/* Tool Cards (Index) */
.tool-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #1c1e21;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid #ddd;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #000;
}

.tool-card h2 { margin: 0 0 10px 0; font-size: 1.25rem; color: #000; }
.tool-card p { margin: 0; color: #65676b; font-size: 0.9rem; }

/* Echo Page Specific */
.card {
    padding: 15px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e4e6eb;
    position: relative;
}

.card.highlight {
    grid-column: 1 / -1;
    background: #f0f7ff;
    border-color: #007bff;
}

.label {
    font-weight: bold;
    color: #65676b;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.value {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 1rem;
    word-break: break-all;
    color: #050505;
}

/* Buttons and UI */
.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1e21;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.list { list-style: none; padding: 0; margin: 5px 0 0 0; font-size: 0.85rem; }
.list-item { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 4px 0; }
.list-item:last-child { border-bottom: none; }
.list-item strong { color: #65676b; min-width: 150px; }

/* Battery Icon */
.battery-container { display: flex; align-items: center; gap: 10px; }
.battery-shell { width: 35px; height: 18px; border: 2px solid #333; border-radius: 3px; position: relative; padding: 1px; }
.battery-shell::after {
    content: ''; width: 3px; height: 8px; background: #333;
    position: absolute; right: -5px; top: 3px; border-radius: 0 2px 2px 0;
}
.battery-level { height: 100%; background: #28a745; border-radius: 1px; transition: width 0.3s, background 0.3s; }
.charging-icon { color: #f1c40f; font-weight: bold; font-family: sans-serif; }

.ip-type { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; color: white; margin-left: 8px; vertical-align: middle; }
.visit-counter { margin-top: 10px; font-size: 0.8rem; color: #999; }
footer { margin-top: auto; padding: 20px; text-align: center; color: #65676b; font-size: 0.8rem; }
.footer-links { margin-top: 30px; font-size: 0.9rem; }
.footer-links a { color: #007bff; text-decoration: none; }
