/* Copy your existing styles.css content here and add Bootstrap-like classes */
.container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header .logo {
    height: 60px;
    width: auto;
}

.header h1 {
    margin: 0;
}

.button-container {
    margin: 20px 0;
}

.btn {
    padding: 10px 15px;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

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

.status-area {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
}

.device-info {
    margin-top: 10px;
    font-family: monospace;
}

.note {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #007bff;
    margin: 15px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
}

.form-group small {
    display: block;
    color: #666;
    margin-top: 3px;
}

.command-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.response-section {
    margin-top: 20px;
    padding: 15px;
    border-top: 2px solid #ddd;
    background-color: #f5f5f5;
}

.response-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.response-group {
    margin-bottom: 15px;
}

.response-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.response-group textarea {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #fff;
    resize: vertical;
    box-sizing: border-box;
}

.library-section {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #17a2b8;
    border-radius: 5px;
    background-color: #f0f8ff;
}

.processed-result {
    margin-top: 15px;
}

.processed-result label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.processed-result textarea {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #fff;
    resize: vertical;
    box-sizing: border-box;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Remote Support Panel Styles */
.remote-support-panel {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #17a2b8;
    border-radius: 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

.remote-support-panel h3 {
    margin-top: 0;
    color: #333;
}

.session-active-customer {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.session-code-display {
    text-align: center;
    margin-bottom: 15px;
}

.code-box {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    background: #333;
    color: #00ff00;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

.support-connected {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}

.approval-request {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.approval-request button {
    margin: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-success {
    background: #28a745;
    color: white;
}
