/* Inline styles from index.html - converted to CSS */

#passwordModal .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#passwordModal .modal.show {
    display: flex;
}

.input-panel {
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 600;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00B14F;
    box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.1);
}

.input-wrapper input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.input-wrapper small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.ble-section {
    padding: 1rem 2rem;
    background-color: #f0f7ff;
    border-bottom: 1px solid #cce5ff;
    margin-bottom: 1rem;
}

.ble-section h4 {
    margin: 0 0 0.5rem 0;
    color: #0056b3;
}

.ble-section small {
    color: #555;
}

.ble-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Remove duplicate form-row - use style.css definition */
/* .form-row is defined in style.css with repeat(2, 1fr) */

.form-group {
    margin: 0;
}

.cta-button {
    background: #00B14F;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-button:hover {
    background: #009943;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 177, 79, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.validate-status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-weight: 500;
}

.result-panel {
    margin-top: 2rem;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00B14F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

#loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.risk-section {
    padding: 2rem;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    border-top: 4px solid;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.summary-card h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
}

.chart-section {
    margin-top: 2rem;
}

.chart-section h4 {
    margin-bottom: 1rem;
}

.plot-image {
    width: 100%;
    border-radius: 8px;
}

.clinical-summary-grid {
    margin-top: 2rem;
}

.recomendation-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #007bff;
}

.recomendation-box h4 {
    margin-top: 0;
    color: #0056b3;
}

.reset-btn {
    background: #6c757d;
    margin-top: 2rem;
}

.reset-btn:hover {
    background: #5a6268;
}

/* Notification Modal */
#notificationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#notificationModal.show {
    display: flex;
}

.notification-container {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.notification-modal.show {
    display: flex;
}

.notification-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.notification-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.notification-body {
    padding: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.notification-footer {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.notification-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    min-width: 90px;
    background: #00B14F;
    color: white;
}

.notification-btn:hover {
    opacity: 0.9;
}

/* Additional utility classes for index.html */
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

.text-required {
    color: #dc2626;
}

.password-error {
    color: red;
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
}

.card-body {
    padding: 2rem;
}

.upload-status {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.file-input {
    padding: 0.5rem;
}

.ble-section {
    padding: 1rem 2rem;
    background-color: #f0f7ff;
    border-bottom: 1px solid #cce5ff;
    margin-bottom: 1rem;
}

.ble-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ble-title {
    margin: 0;
    color: #0056b3;
}

.ble-subtitle {
    color: #555;
}

.ble-status {
    font-size: 0.9rem;
    margin-top: 8px;
    color: #333;
    font-style: italic;
}

.btn-bluetooth {
    background-color: #007bff !important;
    padding: 0.6rem 1.2rem;
    width: auto;
    margin-top: 0;
    height: auto;
}

.btn-bluetooth:hover {
    background-color: #0056b3 !important;
}

.pelayanan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.btn-validate {
    margin-top: 0;
    width: auto;
    height: auto;
}

.input-readonly {
    background-color: #e9ecef;
}

.bmi-display {
    background-color: #e9ecef;
    font-weight: bold;
    color: #333;
}

.bmi-category {
    font-weight: 600;
}

.bluetooth-source {
    color: #00B14F;
    display: none;
    font-weight: bold;
}

.validate-status-box {
    margin: 1rem 0;
    display: none;
}

.validate-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.validate-text {
    color: #155724;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .cta-button {
    flex: 1;
    width: auto;
    margin-top: 0;
}

@media (max-width: 768px) {
    .detail-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pelayanan-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
