/* =============================================================================
   HOTEL NETWORK MAINTENANCE SYSTEM - ALL STYLES
   ============================================================================= */

/* =============================================================================
   1. RESET & BASE STYLES
   ============================================================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

/* =============================================================================
   2. COMMON UTILITIES
   ============================================================================= */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }
.text-warning { color: #f39c12; }
.text-muted { color: #95a5a6; }
.text-primary { color: #3498db; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }

/* =============================================================================
   3. ALERTS & MESSAGES
   ============================================================================= */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #e74c3c;
    background: #fdf2f2;
    color: #c0392b;
}

.alert-success {
    border-left-color: #27ae60;
    background: #d4edda;
    color: #155724;
}

.alert-error {
    border-left: 4px solid #e74c3c;
    background: #fdf2f2;
    color: #c0392b;
}

.alert-warning {
    border-left: 4px solid #f39c12;
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    border-left: 4px solid #3498db;
    background: #d1ecf1;
    color: #0c5460;
}

/* =============================================================================
   4. BADGES
   ============================================================================= */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Priority Badges */
.badge-priority-low { 
    background: #28a745; 
    color: white; 
}

.badge-priority-medium { 
    background: #ffc107; 
    color: #212529; 
}

.badge-priority-high { 
    background: #fd7e14; 
    color: white; 
}

.badge-priority-critical { 
    background: #dc3545; 
    color: white; 
}

/* Status Badges */
.badge-status-open { 
    background: #dc3545; 
    color: white; 
}

.badge-status-assigned { 
    background: #17a2b8; 
    color: white; 
}

.badge-status-in_progress { 
    background: #ffc107; 
    color: #212529; 
}

.badge-status-waiting_parts { 
    background: #6c757d; 
    color: white; 
}

.badge-status-resolved { 
    background: #28a745; 
    color: white; 
}

.badge-status-closed { 
    background: #343a40; 
    color: white; 
}

/* =============================================================================
   5. FORMS
   ============================================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* =============================================================================
   6. BUTTONS
   ============================================================================= */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Primary Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Secondary Buttons */
.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Success Buttons */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

/* Danger Buttons */
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Warning Buttons */
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

/* Light Buttons */
.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =============================================================================
   7. LOGIN PAGE
   ============================================================================= */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.role-btn {
    padding: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: white;
}

.role-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.role-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.role-btn.hotel {
    border-color: #3498db;
    color: #3498db;
}

.role-btn.tech {
    border-color: #27ae60;
    color: #27ae60;
}

.role-btn.hotel.active {
    background: #3498db;
    color: white;
}

.role-btn.tech.active {
    background: #27ae60;
    color: white;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #7f8c8d;
    font-size: 14px;
}

.register-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.register-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.register-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* =============================================================================
   8. REGISTRATION PAGES
   ============================================================================= */
.register-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.register-container.tech-register {
    max-width: 600px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.register-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.section-title {
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* =============================================================================
   9. HEADER & NAVIGATION
   ============================================================================= */
.hotel-header, .tech-header {
    color: white;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hotel-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.tech-header {
    background: linear-gradient(135deg, #2c3e50 0%, #27ae60 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-logo, .tech-logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotel-user-menu, .tech-user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-form {
    display: inline;
}

.hotel-nav, .tech-nav {
    padding: 15px 30px;
}

.hotel-nav {
    background: #34495e;
}

.tech-nav {
    background: #2c3e50;
}

.hotel-nav ul, .tech-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.hotel-nav a, .tech-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.hotel-nav a:hover,
.hotel-nav a.active {
    background: #2c3e50;
}

.tech-nav a:hover,
.tech-nav a.active {
    background: #27ae60;
}

/* =============================================================================
   10. MAIN CONTENT AREAS
   ============================================================================= */
.hotel-main, .tech-main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #7f8c8d;
}

.separator {
    margin: 0 10px;
    color: #bdc3c7;
}

/* =============================================================================
   11. DASHBOARD STYLES
   ============================================================================= */
.welcome-banner, .tech-welcome-banner {
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.welcome-banner {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
}

.tech-welcome-banner {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.time-display {
    text-align: center;
}

.time-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #3498db;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-danger {
    border-left-color: #e74c3c;
}

.stat-card-warning {
    border-left-color: #f39c12;
}

.stat-card-critical {
    border-left-color: #dc3545;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================================================
   12. TABLES
   ============================================================================= */
.hotel-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.hotel-table th {
    background: #f8f9fa;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.hotel-table td {
    padding: 18px;
    border-bottom: 1px solid #eee;
}

.hotel-table tr:hover {
    background: #f8f9fa;
}

/* =============================================================================
   13. FORM CARDS
   ============================================================================= */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-header p {
    color: #7f8c8d;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* =============================================================================
   14. PROFILE STYLES
   ============================================================================= */
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.profile-avatar, .tech-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.profile-avatar {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
}

.tech-profile-avatar {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.profile-role, .profile-specialization {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-specialization {
    color: #27ae60;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-stats {
    margin-top: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.profile-actions {
    margin-top: 30px;
}

.profile-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-value {
    color: #555;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.star {
    color: #f39c12;
    font-size: 18px;
}

.rating-value {
    font-weight: 600;
    color: #2c3e50;
    margin-left: 5px;
}

.bio-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.cert-badge {
    background: #e8f4fc;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* =============================================================================
   15. TECHNICIAN DASHBOARD COMPONENTS
   ============================================================================= */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-tech {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.stat-card-tech:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.stat-icon-total {
    background: #e8f4fc;
    color: #3498db;
}

.stat-icon-pending {
    background: #fff3cd;
    color: #f39c12;
}

.stat-icon-active {
    background: #d4edda;
    color: #27ae60;
}

.stat-icon-available {
    background: #d1ecf1;
    color: #17a2b8;
}

.active-tickets {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-subtitle {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    cursor: pointer;
}

.ticket-item:hover {
    background: #f8f9fa;
}

.ticket-priority {
    width: 10px;
    height: 40px;
    border-radius: 5px;
    margin-right: 15px;
}

.priority-critical { background: #e74c3c; }
.priority-high { background: #fd7e14; }
.priority-medium { background: #f39c12; }
.priority-low { background: #27ae60; }

.ticket-content {
    flex: 1;
}

.ticket-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ticket-meta {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-date {
    text-align: right;
}

.date-label {
    color: #95a5a6;
    font-size: 12px;
}

.date-value {
    color: #2c3e50;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #3498db;
}

/* =============================================================================
   16. TICKET MANAGEMENT
   ============================================================================= */
.ticket-form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.ticket-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ticket-form-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.ticket-form-header p {
    color: #7f8c8d;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.form-section-title {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-subtitle {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.priority-selector, .category-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.priority-option, .category-option {
    padding: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.priority-option:hover, .category-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.priority-option.selected, .category-option.selected {
    color: white;
}

.priority-low { border-color: #28a745; color: #28a745; }
.priority-medium { border-color: #ffc107; color: #ffc107; }
.priority-high { border-color: #fd7e14; color: #fd7e14; }
.priority-critical { border-color: #dc3545; color: #dc3545; }

.priority-low.selected { background: #28a745; border-color: #28a745; }
.priority-medium.selected { background: #ffc107; color: #212529; border-color: #ffc107; }
.priority-high.selected { background: #fd7e14; border-color: #fd7e14; }
.priority-critical.selected { background: #dc3545; border-color: #dc3545; }

.category-option.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.priority-title, .category-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.priority-description, .category-description {
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
}

.workload-indicator {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workload-label {
    font-weight: 600;
    color: #2c3e50;
}

.workload-value {
    color: #3498db;
    font-weight: 600;
    margin-left: 5px;
}

.workload-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.workload-low { background: #d4edda; color: #155724; }
.workload-medium { background: #fff3cd; color: #856404; }
.workload-high { background: #f8d7da; color: #721c24; }

.available-ticket {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.available-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.available-ticket.priority-critical {
    border-left-color: #dc3545;
    animation: pulse 2s infinite;
}

.available-ticket.priority-high {
    border-left-color: #fd7e14;
}

.available-ticket.priority-medium {
    border-left-color: #ffc107;
}

.available-ticket.priority-low {
    border-left-color: #28a745;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.ticket-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.ticket-separator {
    margin: 0 10px;
    color: #bdc3c7;
}

.ticket-property {
    color: #3498db;
    font-weight: 500;
    font-size: 14px;
}

.ticket-date {
    color: #7f8c8d;
    font-size: 13px;
}

.ticket-title {
    color: #2c3e50;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ticket-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.ticket-category, .ticket-submitter {
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticket-description {
    color: #555;
    margin: 10px 0;
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* =============================================================================
   17. TICKETS GRID & CARDS
   ============================================================================= */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ticket-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-body {
    padding: 20px;
}

.ticket-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-due {
    font-size: 12px;
    color: #e74c3c;
}

.btn-view {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

/* =============================================================================
   18. TICKET DETAILS
   ============================================================================= */
.ticket-badges {
    display: flex;
    gap: 10px;
}

.status-workflow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.status-step {
    text-align: center;
    position: relative;
    flex: 1;
}

.status-step.active .step-icon {
    background: #27ae60;
    color: white;
}

.status-step.completed .step-icon {
    background: #27ae60;
    color: white;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
}

.step-label.active {
    color: #27ae60;
    font-weight: 600;
}

.ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ticket-meta-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.ticket-meta-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.ticket-meta-value {
    font-weight: 600;
    color: #2c3e50;
}

.description-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.description-box.resolved {
    border-left-color: #27ae60;
    background: #e8f6ef;
}

.description-box.feedback {
    border-left-color: #f39c12;
    background: #fff9e6;
}

.description-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.description-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feedback-rating {
    color: #f39c12;
    font-weight: 600;
}

.update-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comment-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.comment-username {
    font-weight: 600;
    color: #2c3e50;
}

.comment-user-type {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.comment-time {
    color: #7f8c8d;
    font-size: 12px;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
}

.comment-form {
    margin-top: 30px;
}

.status-update-form {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* =============================================================================
   19. EMPTY STATES
   ============================================================================= */
.empty-state, .empty-state-large {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-state-large {
    padding: 80px 20px;
}

.empty-icon, .empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-icon {
    font-size: 80px;
}

.empty-state h3, .empty-state-large h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p, .empty-state-large p {
    max-width: 400px;
    margin: 0 auto 20px;
}

/* =============================================================================
   20. RESPONSIVE DESIGN
   ============================================================================= */
@media (max-width: 1200px) {
    .hotel-main,
    .tech-main {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item.full-width {
        grid-column: span 1;
    }
    
    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .priority-selector,
    .category-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hotel-nav ul,
    .tech-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hotel-user-menu,
    .tech-user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid,
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hotel-table {
        display: block;
        overflow-x: auto;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .register-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tech-welcome-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .status-workflow {
        flex-direction: column;
        gap: 20px;
    }
    
    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .login-container,
    .register-container {
        padding: 30px 20px;
    }
    
    .hotel-header,
    .tech-header {
        padding: 15px 20px;
    }
    
    .hotel-nav,
    .tech-nav {
        padding: 10px 20px;
    }
    
    .hotel-main,
    .tech-main {
        padding: 15px;
    }
    
    .welcome-banner,
    .tech-welcome-banner {
        padding: 20px;
    }
    
    .form-card,
    .ticket-form-container {
        padding: 20px;
    }
    
    .profile-sidebar,
    .profile-content {
        padding: 20px;
    }
    
    .priority-selector,
    .category-selector {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   21. ANIMATIONS
   ============================================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* =============================================================================
   22. CUSTOM SCROLLBAR
   ============================================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* =============================================================================
   23. PRINT STYLES
   ============================================================================= */
@media print {
    .hotel-nav,
    .tech-nav,
    .logout-form,
    .btn,
    .form-actions,
    .comment-form,
    .status-update-form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hotel-header,
    .tech-header {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-bottom: 2px solid #333;
    }
    
    .stat-card,
    .ticket-card,
    .profile-sidebar,
    .profile-content,
    .form-card,
    .available-ticket {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .badge {
        border: 1px solid #333 !important;
        background: white !important;
        color: black !important;
    }
    
    
    
    
    
    
    
    



 .cancel-ticket-section {
                background: #f8f9fa;
                padding: 20px;
                border-radius: 10px;
                margin-top: 30px;
                border-left: 4px solid #dc3545;
            }
            
            .cancel-warning {
                color: #721c24;
                background: #f8d7da;
                padding: 10px;
                border-radius: 5px;
                margin-bottom: 15px;
                font-size: 14px;
            }
            
            .cancellation-notice {
                background: #fff3cd;
                border-left: 4px solid #f39c12;
                padding: 15px;
                border-radius: 8px;
                margin: 20px 0;
            }
            
            .cancellation-reason {
                background: #f8f9fa;
                padding: 15px;
                border-radius: 6px;
                margin-top: 10px;
                border-left: 3px solid #6c757d;
            }
            
            .badge-status-cancelled {
                background: #6c757d !important;
                color: white !important;
            }
            
            
             .properties-mini-grid {
                            display: grid;
                            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                            gap: 15px;
                            margin-bottom: 30px;
                        }
                        
                        .property-mini-card {
                            background: #f8f9fa;
                            border-radius: 8px;
                            padding: 15px;
                            border-left: 4px solid #3498db;
                        }
                        
                        .property-mini-header {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            margin-bottom: 10px;
                        }
                        
                        .property-mini-header h4 {
                            margin: 0;
                            color: #2c3e50;
                            font-size: 16px;
                        }
                        
                        .property-mini-type {
                            background: #3498db;
                            color: white;
                            padding: 2px 8px;
                            border-radius: 12px;
                            font-size: 11px;
                            font-weight: 600;
                        }
                        
                        .property-mini-body {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                        }
                        
                        .property-mini-info {
                            display: flex;
                            flex-direction: column;
                            gap: 5px;
                            font-size: 12px;
                            color: #7f8c8d;
                        }
                        
                        .property-mini-status {
                            padding: 3px 10px;
                            border-radius: 12px;
                            font-size: 11px;
                            font-weight: 600;
                            text-transform: uppercase;
                        }
                        
                        .status-active {
                            background: #d4edda;
                            color: #155724;
                        }
                        
                        .status-inactive {
                            background: #f8d7da;
                            color: #721c24;
                        }
                        
                        .status-suspended {
                            background: #fff3cd;
                            color: #856404;
                        }
                        
                        /* =============================================================================
   24. CALL FEATURE STYLES
   ============================================================================= */
.call-feature {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.call-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.call-header h3 {
    margin: 0;
    font-size: 20px;
}

.call-phone-icon {
    font-size: 24px;
}

.call-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.call-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.call-party {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.party-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.party-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
}

.party-name {
    font-weight: 600;
    font-size: 16px;
}

.party-role {
    font-size: 12px;
    opacity: 0.8;
}

.phone-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: 15px;
}

.call-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.call-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.call-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #6c757d;
}

.call-alternative {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.call-log {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.call-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.call-log-title {
    font-size: 14px;
    font-weight: 600;
}

.call-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.call-log-item:last-child {
    border-bottom: none;
}

.call-time {
    opacity: 0.8;
}

.call-duration {
    font-weight: 600;
}

.no-calls {
    text-align: center;
    padding: 10px;
    opacity: 0.8;
    font-size: 13px;
}

@media (max-width: 768px) {
    .call-parties {
        grid-template-columns: 1fr;
    }
    
    .phone-number {
        font-size: 16px;
    }
}
          
    
    
    
    
}








































              
                        
            .properties-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
                gap: 20px;
                margin-top: 20px;
            }
            
            .property-card {
                background: white;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 5px 15px rgba(0,0,0,0.08);
                transition: all 0.3s;
            }
            
            .property-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 25px rgba(0,0,0,0.12);
            }
            
            .property-header {
                padding: 15px 20px;
                background: #3498db;
                color: white;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .property-type {
                font-weight: 600;
                font-size: 12px;
                letter-spacing: 1px;
            }
            
            .property-status {
                padding: 4px 12px;
                border-radius: 20px;
                font-size: 11px;
                font-weight: 600;
                text-transform: uppercase;
            }
            
            .property-status.active {
                background: rgba(255, 255, 255, 0.2);
            }
            
            .property-status.inactive {
                background: rgba(231, 76, 60, 0.2);
            }
            
            .property-status.suspended {
                background: rgba(243, 156, 18, 0.2);
            }
            
            .property-body {
                padding: 20px;
            }
            
            .property-name {
                color: #2c3e50;
                margin-bottom: 15px;
                font-size: 20px;
            }
            
            .property-info {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .property-info .info-item {
                display: flex;
                flex-direction: column;
                gap: 3px;
            }
            
            .property-info .info-label {
                font-size: 11px;
                color: #7f8c8d;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            .property-info .info-value {
                font-weight: 500;
                color: #2c3e50;
                font-size: 13px;
            }
            
            .property-address {
                color: #7f8c8d;
                font-size: 13px;
                padding-top: 15px;
                border-top: 1px solid #eee;
            }
            
            .property-footer {
                padding: 15px 20px;
                background: #f8f9fa;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .property-actions {
                display: flex;
                gap: 10px;
            }
            
            .modal {
                display: none;
                position: fixed;
                z-index: 1000;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0,0,0,0.5);
                animation: fadeIn 0.3s;
            }
            
            .modal-content {
                background-color: white;
                margin: 5% auto;
                padding: 0;
                border-radius: 15px;
                width: 90%;
                max-width: 800px;
                max-height: 90vh;
                overflow-y: auto;
                animation: slideIn 0.3s;
            }
            
            .modal-header {
                padding: 20px;
                border-bottom: 1px solid #eee;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            .modal-header h2 {
                margin: 0;
                color: #2c3e50;
            }
            
            .close-modal {
                font-size: 28px;
                font-weight: bold;
                cursor: pointer;
                color: #7f8c8d;
            }
            
            .close-modal:hover {
                color: #2c3e50;
            }
            
            .modal-body {
                padding: 20px;
            }
            
            /* Google Map Location Picker Styles */
            .map-container {
                height: 300px;
                width: 100%;
                margin-top: 10px;
                border-radius: 8px;
                overflow: hidden;
                border: 2px solid #e9ecef;
            }
            
            .location-search {
                display: flex;
                gap: 10px;
                margin-bottom: 10px;
            }
            
            .location-search input {
                flex: 1;
            }
            
            .selected-location {
                background: #f8f9fa;
                padding: 10px;
                border-radius: 6px;
                margin-top: 10px;
                font-size: 14px;
                border-left: 3px solid #3498db;
            }
            
            .coordinates {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-top: 15px;
            }




