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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

.info-box {
    background: #f8f9fa;
    padding: 25px;
    margin: 30px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-box ol {
    padding-left: 25px;
    color: #555;
}

.info-box li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.action-section {
    padding: 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.device-info {
    margin: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 200px;
}

.device-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

#info-content {
    font-size: 1em;
}

.loading {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-item .label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95em;
}

.info-item .value {
    font-family: 'Courier New', monospace;
    color: #333;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    word-break: break-all;
    font-size: 0.9em;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #f5c6cb;
}

.warning-box {
    background: #fff3cd;
    padding: 25px;
    margin: 30px;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.warning-box ul {
    list-style: none;
    padding-left: 0;
    color: #856404;
}

.warning-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.warning-box li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .info-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .info-item .label {
        font-size: 0.9em;
    }
    
    .info-item .value {
        font-size: 0.85em;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 15px 20px;
    }
    
    .info-box, .warning-box, .device-info {
        margin: 20px 15px;
        padding: 20px 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

.info-item {
    animation: fadeIn 0.3s ease-out;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading:before {
    content: "⏳";
    display: inline-block;
    margin-right: 10px;
    animation: spin 2s linear infinite;
}
