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

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

header {
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.header-content {
    text-align: center;
    padding: 2rem 0;
}

.header-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    min-height: 200px;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.tool-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}

.status-indicator[data-status="online"] .status-dot {
    background-color: #27ae60;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.5);
}

.status-indicator[data-status="offline"] .status-dot {
    background-color: #e74c3c;
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.5);
}

.status-indicator[data-status="checking"] .status-dot {
    background-color: #f39c12;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

.tool-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
}

.tool-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tool-link:hover {
    color: #2980b9;
}

footer {
    background-color: #34495e;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0.5rem 0;
    color: #bdc3c7;
}

.footer-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #5dade2;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .tool-card {
        min-width: 280px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .header-content h2 {
        font-size: 2rem;
    }
    
    .tool-card {
        min-width: 250px;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-menu a {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .header-content {
        padding: 1.5rem 0;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
    }
    
    .tool-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    main {
        padding: 0 1rem;
    }
}