body {
    background: #17172b;
    color: #d1d5db;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.5;
}

.container, .login-container {
    max-width: 900px;
    width: 100%;
    margin: auto;
    background: #1f1f38;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.container:hover, .login-container:hover {
    transform: translateY(-4px);
}

.login-container {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 159, 249, 0.2);
    background: linear-gradient(145deg, #1f1f38, #2a2a4a);
}

h1 {
    color: #4f9ff9;
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 0 10px rgba(79, 159, 249, 0.5);
    background: linear-gradient(90deg, #4f9ff9, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

#domainForm {
    flex-direction: row;
    max-width: none;
    gap: 12px;
    flex-wrap: wrap;
}

input, select, button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #2a2a4a;
    color: #d1d5db;
    font-size: 0.95rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.3s;
}

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 159, 249, 0.3);
    background: #333357;
    transform: scale(1.02);
}

button {
    background: #4f9ff9;
    cursor: pointer;
    font-weight: 500;
    padding: 12px 24px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(79, 159, 249, 0.3);
}

button:hover {
    background: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(79, 159, 249, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(79, 159, 249, 0.2);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: #1f1f38;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

th {
    background: #2a2a4a;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #25253a;
}

.delete {
    background: #ef4444;
    padding: 8px 16px;
}

.delete:hover {
    background: #f87171;
}

.error {
    color: #f87171;
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-in;
}

.success {
    color: #34d399;
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

#message {
    margin-bottom: 16px;
}

#logout {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4f9ff9;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container, .login-container {
        padding: 20px;
    }

    #domainForm {
        flex-direction: column;
    }

    input, select, button {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 12px;
    }

    #logout {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}