/* ============================================
   TECHNICIAN TRACKER STYLES
   ============================================ */

.tracker-container {
    display: flex;
    height: 100vh;
    padding-top: 80px;
    background-color: var(--ghozt-black);
}

/* ============================================
   SIDEBAR
   ============================================ */

.tracker-sidebar {
    width: 400px;
    background-color: var(--ghozt-dark);
    border-right: 1px solid var(--ghozt-panel);
    overflow-y: auto;
    padding: 2rem;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    margin-bottom: 0;
}

.service-lookup {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--ghozt-panel);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: var(--radius-md);
}

/* ============================================
   TECHNICIAN PROFILE
   ============================================ */

.tech-profile {
    background-color: var(--ghozt-panel);
    border: 1px solid var(--ghozt-green);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ghozt-green-dim), var(--ghozt-blue-dim));
    border: 2px solid var(--ghozt-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* ============================================
   CREDENTIALS
   ============================================ */

.credentials-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.credential-badge:hover {
    background-color: rgba(0, 255, 0, 0.2);
    border-color: var(--ghozt-green);
    transform: translateY(-2px);
}

/* ============================================
   STATUS SECTION
   ============================================ */

.status-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ghozt-green-dim), var(--ghozt-blue-dim));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SERVICE DETAILS
   ============================================ */

.service-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

/* ============================================
   DEMO NOTICE
   ============================================ */

.demo-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    margin-top: 2rem;
    font-size: 0.875rem;
}

.demo-notice code {
    background-color: var(--ghozt-panel);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--ghozt-green);
    font-family: var(--font-mono);
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
    flex: 1;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
    background-color: var(--ghozt-panel);
}

/* ============================================
   MAP CONTROLS
   ============================================ */

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background-color: var(--ghozt-panel);
    border: 1px solid var(--ghozt-green);
    border-radius: var(--radius-sm);
    color: var(--ghozt-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.map-control-btn:hover {
    background-color: var(--ghozt-green);
    color: var(--ghozt-black);
    box-shadow: 0 0 20px var(--ghozt-green-glow);
}

/* ============================================
   LIVE BANNER
   ============================================ */

.live-banner {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--ghozt-green);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ghozt-green);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--ghozt-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ============================================
   CHAT MODAL
   ============================================ */

.chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-container {
    width: 400px;
    height: 500px;
    background-color: var(--ghozt-dark);
    border: 1px solid var(--ghozt-green);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--ghozt-panel);
    border-bottom: 1px solid var(--ghozt-green);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-header h3 {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--ghozt-green);
    margin: 0;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    max-width: 80%;
}

.tech-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    align-self: flex-start;
}

.user-message {
    background-color: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    align-self: flex-end;
}

.chat-message strong {
    color: var(--ghozt-green);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.chat-message p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-time {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--ghozt-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--ghozt-black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-sans);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--ghozt-green);
}

/* ============================================
   LEAFLET CUSTOMIZATION
   ============================================ */

.leaflet-container {
    background-color: var(--ghozt-panel);
}

.leaflet-popup-content-wrapper {
    background-color: var(--ghozt-dark);
    color: white;
    border: 1px solid var(--ghozt-green);
    border-radius: var(--radius-md);
}

.leaflet-popup-tip {
    background-color: var(--ghozt-dark);
}

.leaflet-control-attribution {
    background-color: rgba(0, 0, 0, 0.8);
    color: #888;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .tracker-sidebar {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .tracker-container {
        flex-direction: column;
    }

    .tracker-sidebar {
        width: 100%;
        height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--ghozt-panel);
    }

    .map-container {
        height: 50vh;
    }

    .chat-modal {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .chat-container {
        width: 100%;
    }

    .map-controls {
        top: 10px;
        right: 10px;
    }

    .live-banner {
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.tracker-sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.tracker-sidebar::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: var(--ghozt-black);
}

.tracker-sidebar::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--ghozt-green);
    border-radius: 4px;
}

.tracker-sidebar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--ghozt-blue);
}
