/* FlipIP DynDNS Provider Styles */
* {
    box-sizing: border-box;
}

body { 
    font-family: system-ui, -apple-system, sans-serif; 
    margin: 0;
    padding: 2rem; 
    max-width: 1200px; 
    margin: 0 auto;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
}

h1 {
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

label { 
    display: block; 
    margin: 0.8rem 0 0.3rem 0; 
    font-weight: 500;
    color: #555;
}

input, select, textarea { 
    padding: 0.6rem; 
    min-width: 300px; 
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

button { 
    padding: 0.6rem 1.2rem; 
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #0056b3;
}

button.danger {
    background: #dc3545;
}

button.danger:hover {
    background: #c82333;
}

button.secondary {
    background: #6c757d;
}

button.secondary:hover {
    background: #545b62;
}

.err { 
    color: #dc3545; 
    background: #f8d7da;
    padding: 0.75rem;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 1rem 0;
}

.ok { 
    color: #155724; 
    background: #d4edda;
    padding: 0.75rem;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 1rem 0;
}

.info {
    color: #0c5460;
    background: #d1ecf1;
    padding: 0.75rem;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 1rem 0;
}

table { 
    border-collapse: collapse; 
    width: 100%; 
    margin-top: 1rem;
    background: white;
}

th, td { 
    border: 1px solid #ddd; 
    padding: 0.75rem; 
    text-align: left;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

code { 
    background: #f8f9fa; 
    padding: 0.2rem 0.4rem; 
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

nav {
    margin: 1rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

nav a {
    color: #007bff;
    text-decoration: none;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background: #e9ecef;
}

nav a.active {
    background: #007bff;
    color: white;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.form-group {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    input, select, textarea {
        min-width: 100%;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}