/* IP-sjefen Styles - Based on logo color palette */
/* Primary colors from logo: Blue #16A1D8, Black #151515, White #FFFFFF */

:root {
    --primary-blue: #16A1D8;
    --dark-text: #151515;
    --light-gray: #F5F7F9;
    --white: #FFFFFF;
    --success-green: #2ECC71;
    --error-red: #E74C3C;
    --border-light: #E1E8ED;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, var(--primary-blue) 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--dark-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: var(--shadow);
}

header {
    background: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-blue);
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.8;
    margin-bottom: 0;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
}

/* IP Information Styles */
.ip-info {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.ip-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 4px solid var(--success-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ip-item:last-child {
    margin-bottom: 0;
}

.ip-item.ipv4-only {
    border-left-color: #FF6600;
}

.ip-item.ipv6-only {
    border-left-color: #39D353;
}

.ip-item.dualstack {
    border-left-color: #39D353;
}

.ip-item.error {
    border-left-color: var(--error-red);
    color: var(--error-red);
}

.ip-type {
    font-weight: 600;
    min-width: 60px;
    color: var(--dark-text);
}

.ip-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.detail-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-card p:last-child {
    margin-bottom: 0;
}

.detail-card strong {
    color: var(--dark-text);
    font-weight: 600;
}

.detail-card.error {
    border-left: 4px solid var(--error-red);
    color: var(--error-red);
}

/* Test Section */
.test-results {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.test-item:last-child {
    border-bottom: none;
}

.test-label {
    font-weight: 600;
    color: var(--dark-text);
}

.test-status {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.success {
    color: var(--success-green);
    font-weight: 600;
}

.error {
    color: var(--error-red);
    font-weight: 600;
}

/* Loading animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--primary-blue);
    font-style: italic;
}

.loading::after {
    content: '';
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    header {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    main {
        padding: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    .ip-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .test-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Missing CSS classes that are used in HTML */

.ip-section {
    /* This is the main section containing IPv4/IPv6 status */
}

.ip-label {
    font-weight: 600;
    min-width: 60px;
    color: var(--dark-text);
}

.ip-status {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.ip-status.orange {
    background-color: orange;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
}

.details-section {
    /* Section containing the detailed IP information */
}
