/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.header {
    background-color: #0078d7;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Language Selector Styles */
.language-selector {
    position: absolute;
    top: 10px;
    right: 15px;
}

.language-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.language-selector select option {
    background-color: #fff;
    color: #333;
}

/* RTL Support for Urdu */
[dir="rtl"] .language-selector {
    right: auto;
    left: 15px;
}

[dir="rtl"] .review-item input,
[dir="rtl"] .review-item textarea,
[dir="rtl"] .review-item select {
    text-align: right;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header__logo img {
    height: 50px;
}

.main-content {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.review-head {
    text-align: center;
    margin-bottom: 2rem;
}

.review-title {
    font-size: 2rem;
    color: #0078d7;
}

.review-description {
    color: #555;
}

.review {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-item {
    margin-bottom: 1.5rem;
}

.review-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #444;
}

.review-item input,
.review-item textarea,
.review-item select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.review-item textarea {
    resize: vertical;
}

.review-item button {
    padding: 0.8rem 1.5rem;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-item button:hover {
    background-color: #005fa3;
}

.footer {
    background-color: #0078d7;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

/* Camera and Photo Capture Styles */
.photo-capture-container {
    width: 100%;
    margin-top: 10px;
}

#reviewer-photo {
    margin-bottom: 10px;
}

#camera-btn {
    display: block;
    padding: 10px 15px;
    margin: 10px 0;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.camera-container {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#camera-view {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

#take-photo-btn,
#confirm-photo-btn {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cancel-photo-btn,
#retake-photo-btn {
    padding: 8px 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.photo-preview-container {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#photo-preview {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
}

.photo-status {
    margin-top: 10px;
    padding: 8px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .header__logo {
        flex-direction: column;
    }
    
    .review {
        padding: 1rem;
    }
    
    .main-content {
        width: 95%;
    }
}