/* Diario Photo Test Modal Styles */
.diario-photo-modal .diario-modal-content {
    max-width: 850px;
    background: var(--bg-card, #ffffff);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.diario-photo-modal .diario-modal-header {
    padding: 20px 30px 15px;
    flex-shrink: 0;
}

.diario-photo-modal .diario-modal-body {
    padding: 0 30px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Upload options container */
.photo-upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.photo-upload-zone {
    border: 2px dashed #007bff;
    border-radius: 15px;
    padding: 24px 16px;
    text-align: center;
    background: rgba(0, 123, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.photo-upload-zone:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: #0056b3;
}

.photo-upload-zone i {
    font-size: 2.2rem;
    color: #007bff;
    margin-bottom: 8px;
}

.photo-upload-zone p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.photo-upload-camera {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.photo-upload-camera:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: #1e7e34;
}

.photo-upload-camera i {
    color: #28a745;
}

.photo-preview-container {
    display: none;
    margin-top: 16px;
    text-align: center;
}

.photo-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.results-table-container {
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #eee;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.confidence-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.param-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.param-input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.diario-photo-modal .modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: var(--bg-card, #ffffff);
    padding-bottom: 5px;
}

/* Photo tips */
.photo-tips-brief {
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: #3a5f8a;
}

.photo-tips-brief ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.photo-tips-brief li {
    margin-bottom: 2px;
}

.photo-tips-toggle {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0;
    margin-top: 4px;
    text-decoration: underline;
}

.photo-tips-toggle:hover {
    color: #0056b3;
}

.photo-tips-detail {
    display: none;
    background: #fafcff;
    border: 1px solid #e0ecf7;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 8px;
    font-size: 0.84rem;
    color: #4a6a8a;
    line-height: 1.5;
}

.photo-tips-detail h5 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #2a4a6a;
}

.photo-tips-detail ul {
    margin: 0 0 10px;
    padding-left: 18px;
}

.photo-tips-detail li {
    margin-bottom: 4px;
}

/* Confidence warning (post-analysis) */
.photo-confidence-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #7a6000;
}

.photo-confidence-warning i {
    margin-right: 4px;
}

/* Cost info */
.photo-test-cost-info {
    font-size: 0.85rem;
}

/* Multi-date group styles */
.photo-results-group {
    margin-bottom: 8px;
}

.photo-results-group-multi {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fafcff;
}

.photo-results-group-multi .results-table-container {
    margin-top: 8px;
    max-height: 200px;
}

.photo-results-group-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1565c0;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0ecf7;
}

.photo-results-group-header i {
    margin-right: 6px;
    color: #1976d2;
}

/* Responsive */
@media (max-width: 600px) {
    .diario-photo-modal .diario-modal-content {
        max-width: 98vw;
        max-height: 95vh;
        border-radius: 12px;
    }

    .diario-photo-modal .diario-modal-header {
        padding: 15px 20px 10px;
    }

    .diario-photo-modal .diario-modal-body {
        padding: 0 20px 15px;
    }

    .photo-upload-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .photo-upload-zone {
        padding: 20px 15px;
    }

    .photo-upload-zone i {
        font-size: 2rem;
    }

    .photo-preview-container img {
        max-height: 150px;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        display: none;
    }

    .results-table-container {
        max-height: 300px;
    }
}
