/* Libro de Reclamaciones - Estilos minimalistas */
:root {
    --lr-primary: #333333;
    --lr-secondary: #666666;
    --lr-danger: #dc3545;
    --lr-success: #28a745;
    --lr-warning: #ffc107;
    --lr-border: rgba(128, 128, 128, 0.3);
    --lr-text: inherit;
    --lr-text-light: inherit;
    --lr-bg: transparent;
    --lr-bg-light: rgba(128, 128, 128, 0.05);
}

.lr-form-container {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lr-text);
    background: var(--lr-bg);
    border: 1px solid var(--lr-border);
    border-radius: 4px;
}

.lr-form-header {
    color: var(--lr-text);
    padding: 20px 25px;
    text-align: center;
}

.lr-form-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.lr-form-header .lr-empresa {
    margin: 0;
    font-size: 16px;
}

.lr-form-header .lr-ruc {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.lr-form {
    padding: 25px;
}

.lr-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--lr-border);
}

.lr-section:last-of-type {
    border-bottom: none;
}

.lr-section-title {
    color: var(--lr-text);
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lr-border);
    display: inline-block;
}

.lr-field {
    margin-bottom: 15px;
}

.lr-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: var(--lr-text);
}

.lr-field label .required {
    color: var(--lr-danger);
}

.lr-field input[type="text"],
.lr-field input[type="email"],
.lr-field input[type="tel"],
.lr-field input[type="number"],
.lr-field select,
.lr-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lr-border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: var(--lr-bg);
    color: var(--lr-text);
}

.lr-field input:focus,
.lr-field select:focus,
.lr-field textarea:focus {
    outline: none;
    border-color: var(--lr-primary);
}

.lr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lr-field-row.lr-ubigeo {
    grid-template-columns: 1fr 1fr 1fr;
}

.lr-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lr-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--lr-border);
    border-radius: 4px;
    cursor: pointer;
    background: var(--lr-bg-light);
}

.lr-radio-label:hover {
    background: rgba(128, 128, 128, 0.1);
}

.lr-radio-label input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
}

.lr-radio-content {
    flex: 1;
}

.lr-radio-content strong {
    display: block;
    color: var(--lr-text);
    margin-bottom: 3px;
}

.lr-radio-content small {
    display: block;
    color: var(--lr-text);
    opacity: 0.8;
    font-size: 12px;
    line-height: 1.4;
}

.lr-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.lr-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
}

.lr-terminos {
    background: var(--lr-bg-light);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--lr-border);
}

.lr-terminos .lr-field {
    margin-bottom: 10px;
}

.lr-terminos .lr-field:last-child {
    margin-bottom: 0;
}

.lr-notice {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid var(--lr-warning);
    padding: 12px 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.lr-notice p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--lr-text);
}

.lr-notice p strong {
    color: inherit;
}

.lr-submit-wrap {
    text-align: center;
    margin-top: 25px;
}

.lr-submit-btn {
    background: var(--lr-primary);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.lr-submit-btn:hover {
    background: #555;
}

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

.lr-notifications {
    margin-bottom: 15px;
}

.lr-notification {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.lr-notification.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--lr-danger);
}

.lr-notification.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--lr-success);
}

.lr-success {
    text-align: center;
    padding: 40px 25px;
    background: rgba(40, 167, 69, 0.05);
}

.lr-success-icon {
    font-size: 48px;
    color: var(--lr-success);
    margin-bottom: 15px;
}

.lr-success h3 {
    color: var(--lr-success);
    font-size: 22px;
    margin: 0 0 10px;
}

.lr-success p {
    color: var(--lr-text);
    margin: 5px 0;
}

.lr-success .lr-correlativo {
    font-size: 16px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.lr-success .lr-info-email {
    color: var(--lr-text);
    opacity: 0.8;
    font-size: 13px;
}

.lr-new-btn {
    background: var(--lr-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.lr-new-btn:hover {
    background: #555;
}

label.error {
    color: var(--lr-danger);
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

/* Evidencia Previews */
.lr-evidencia-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.lr-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--lr-border);
    border-radius: 4px;
    overflow: hidden;
}

.lr-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lr-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lr-preview-remove:hover {
    background: rgba(220, 53, 69, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .lr-field-row.lr-ubigeo {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .lr-form {
        padding: 15px;
    }
    
    .lr-form-header {
        padding: 15px;
    }
    
    .lr-form-header h2 {
        font-size: 20px;
    }
    
    .lr-field-row,
    .lr-field-row.lr-ubigeo {
        grid-template-columns: 1fr;
    }
    
    .lr-radio-label {
        padding: 10px;
    }
    
    .lr-submit-btn {
        width: 100%;
        padding: 14px;
    }
}

/* Logs panel */
.lr-logs-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.lr-log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.lr-log-entry:last-child {
    border-bottom: none;
}

.lr-log-timestamp {
    color: #6a9955;
}

.lr-log-level-info {
    color: #4fc1ff;
}

.lr-log-level-success {
    color: #4ec9b0;
}

.lr-log-level-error {
    color: #f14c4c;
}

.lr-log-level-warning {
    color: #cca700;
}

.lr-log-message {
    color: #d4d4d4;
}

.lr-logs-actions {
    margin-bottom: 15px;
}

.lr-logs-actions .button {
    margin-right: 10px;
}

/* Admin stats cards */
.lr-stat-card {
    background: white;
    border: 1px solid var(--lr-border);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.lr-stat-card h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: var(--lr-text-light);
    text-transform: uppercase;
}

.lr-stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--lr-primary);
}