/* ============================================
   FRONTEND CSS - Consolidated Styles
   ============================================ */

/* Base Styles */
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* RTL/LTR Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }
}

/* Prevent text selection on rating cards for better touch experience */
.rating-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Larger touch targets */
.btn, .form-control, .form-select {
    min-height: 44px;
}

/* ============================================
   Welcome Page Styles
   ============================================ */
.welcome-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-height: 120px;
    max-width: 300px;
    object-fit: contain;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.company-name {
    font-size: 1.8rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.company-name-ar {
    font-size: 1.5rem;
    color: #764ba2;
    margin-bottom: 30px;
}

.enter-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.footer {
    background-color: rgba(0,0,0,0.2);
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-separator {
    margin: 0 10px;
    opacity: 0.7;
}

/* ============================================
   Login Selection Page Styles
   ============================================ */
.login-selection-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.login-logo-container {
    margin-bottom: 30px;
}

.login-logo-container img {
    max-height: 100px;
    max-width: 250px;
    object-fit: contain;
}

.login-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.login-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 15px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

.login-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.login-option.admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.login-option.admin:hover {
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

.login-option i {
    margin-right: 10px;
}

.back-button {
    color: white;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.back-button:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   Staff Dashboard / Feedback Form Styles
   ============================================ */
.staff-dashboard-body {
    background-color: #e8f5e9;
    padding: 0;
    margin: 0;
}

.tablet-container {
    min-height: 100vh;
    padding: 15px;
}

.tablet-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tablet-header img {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
}

.tablet-header h2 {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.2;
}

.tablet-header .small {
    font-size: 0.75rem;
}

.tablet-header .text-muted {
    font-size: 0.85rem;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    font-size: 0.8rem;
    padding: 4px 12px;
}

.rating-card {
    cursor: pointer;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 15px 8px;
    transition: all 0.3s ease;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    flex: 1;
}

.rating-card:hover, .rating-card.selected {
    border-color: #000000;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rating-emoji-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 2.5rem;
    background-color: transparent;
}

.rating-emoji-container.excellent {
    background-color: transparent;
}

.rating-emoji-container.good {
    background-color: transparent;
}

.rating-emoji-container.weak {
    background-color: transparent;
}

.rating-emoji-container.happy {
    background-color: transparent;
}

.rating-emoji-container.not-happy {
    background-color: transparent;
}

.rating-emoji {
    font-size: 2.5rem;
}

.rating-label {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 2px;
}

.rating-label-ar {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
}

.form-control, .form-select {
    font-size: 1.2rem;
    padding: 12px 15px;
    border-radius: 8px;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.btn-submit {
    font-size: 1.5rem;
    padding: 15px 50px;
    border-radius: 10px;
    min-width: 200px;
}

.feedback-card {
    border: none;
    border-radius: 15px;
}

.section-header-staff {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #90caf9;
}

.section-header-staff .section-title {
    color: #1976d2;
}

.section-header-service {
    background-color: #f3e5f5;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ce93d8;
}

.section-header-service .section-title {
    color: #7b1fa2;
}

.section-header-public {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.note-textarea {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .rating-emoji-container {
        width: 70px;
        height: 70px;
        font-size: 3rem;
        background-color: transparent;
    }
    .rating-emoji {
        font-size: 3rem;
    }
    .rating-label {
        font-size: 1.1rem;
    }
}

/* ============================================
   Public Feedback Form Styles
   ============================================ */
.public-form-body {
    background-color: #ffffff;
    padding: 0;
    margin: 0;
}

/* ============================================
   Select Staff Page Styles
   ============================================ */
.hover-shadow {
    transition: all 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.staff-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.staff-photo-placeholder {
    width: 100px;
    height: 100px;
}

/* ============================================
   Thank You Page Styles
   ============================================ */
.thank-you-icon {
    font-size: 5rem;
    color: #28a745;
}

/* ============================================
   Login Pages Styles
   ============================================ */
.login-page-container {
    min-height: 100vh;
}

.login-page-container-full {
    min-height: 100vh;
    padding: 40px 0;
}

.login-card-body {
    margin: 20px 0;
    padding-top: 2rem !important;
}

.login-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.input-group .btn {
    border-left: 0;
    z-index: 3;
}

.input-group .form-control:focus {
    z-index: 2;
}

/* ============================================
   Common Image Styles
   ============================================ */
.logo-img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.logo-img-small {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

.staff-photo-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.staff-photo-medium {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.staff-photo-tiny {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/* ============================================
   Chart Container Styles
   ============================================ */
.chart-container {
    height: 250px;
    position: relative;
    margin-bottom: 20px;
}

.chart-container-large {
    height: 300px;
    position: relative;
}

.chart-container-small {
    height: 200px;
    position: relative;
}

