/* Kywy Boot Tool Specific Styles */

/* Browser compatibility warning */
.browser-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fd7e14;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.warning-content {
    padding: 15px 20px;
}

.warning-content strong {
    color: #856404;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.warning-content p {
    margin: 8px 0;
    color: #856404;
    line-height: 1.4;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.tool-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.connection-section,
.boot-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.connection-section h2,
.boot-section h2 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.3em;
}

.connection-controls,
.boot-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 140px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #545b62;
}

.btn-warning {
    background: #fd7e14;
    color: white;
    font-weight: 600;
}

.btn-warning:hover:not(:disabled) {
    background: #e55a00;
}

.status-display {
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-left: 4px solid #6c757d;
    min-height: 20px;
}

.status-display.connected {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.status-display.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.status-display.success {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.info-section {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    margin-bottom: 20px;
}

.info-section h3 {
    margin: 0 0 15px 0;
    color: #856404;
}

.info-section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.info-section li {
    margin: 8px 0;
    color: #856404;
}

.note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
    margin-top: 15px;
    color: #495057;
}

.controls {
    text-align: center;
    padding: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .tool-section {
        grid-template-columns: 1fr;
    }
    
    .connection-controls,
    .boot-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
