/* Modern Reformix Tracking Form - Clean Design */

/* Reset and Base Styles */
.reformix-tracking-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.reformix-tracking-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
    color: inherit;
    line-height: 1.6;
    background: transparent;
}

/* Tracking Form Card */
.reformix-tracking-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: reformixFadeInUp 0.6s ease-out;
}

@keyframes reformixFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reformix-card-header {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.reformix-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.reformix-card-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.reformix-card-body {
    padding: 40px 30px;
}

.reformix-form-row {
    margin-bottom: 25px;
}

.reformix-form-row input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.reformix-form-row input:focus {
    outline: none;
    border-color: var(--reformix-primary-color, #667eea);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.reformix-button {
    width: 100%;
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reformix-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.reformix-button:hover::before {
    left: 100%;
}

.reformix-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.reformix-button:active {
    transform: translateY(-1px);
}

/* Job Status Dashboard */
.reformix-pro-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: reformixFadeInUp 0.8s ease-out;
}

/* Status Header */
.status-header-section {
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.status-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--reformix-primary-color, #667eea), #764ba2);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-icon-large {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: reformixPulse 2s infinite;
}

@keyframes reformixPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
}

.status-badge {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tracking-id-badge {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

/* Timeline */
.timeline-section {
    padding: 60px 40px;
    background: white;
}

.timeline-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

.timeline-horizontal.progress-1::before { background: linear-gradient(90deg, var(--reformix-primary-color, #667eea) 20%, #e2e8f0 20%); }
.timeline-horizontal.progress-2::before { background: linear-gradient(90deg, var(--reformix-primary-color, #667eea) 40%, #e2e8f0 40%); }
.timeline-horizontal.progress-3::before { background: linear-gradient(90deg, var(--reformix-primary-color, #667eea) 60%, #e2e8f0 60%); }
.timeline-horizontal.progress-4::before { background: linear-gradient(90deg, var(--reformix-primary-color, #667eea) 80%, #e2e8f0 80%); }
.timeline-horizontal.progress-5::before { background: var(--reformix-primary-color, #667eea); }

.timeline-step-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #a0aec0;
    margin-bottom: 10px;
    border: 3px solid white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-step-h.completed .step-circle {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.timeline-step-h.current .step-circle {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    color: white;
    animation: reformixCurrentPulse 2s infinite;
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4);
}

@keyframes reformixCurrentPulse {
    0% { box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4), 0 0 0 0 rgba(255, 167, 38, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4), 0 0 0 15px rgba(255, 167, 38, 0); }
    100% { box-shadow: 0 4px 20px rgba(255, 167, 38, 0.4), 0 0 0 0 rgba(255, 167, 38, 0); }
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step-h.completed .step-label {
    color: var(--reformix-primary-color, #667eea);
}

.timeline-step-h.current .step-label {
    color: #ffa726;
}

/* Info Section */
.info-section {
    padding: 50px 40px;
    background: #f8fafc;
}

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

.info-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
}

.info-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.info-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleY(1);
}

.info-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.card-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.5;
}

/* Action Buttons */
.actions-section {
    padding: 40px;
    text-align: center;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.action-buttons {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.4);
}

/* Chat System */
.reformix-chat-toggle,
#reformix-chat-toggle {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.reformix-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.reformix-unread-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid white;
    animation: reformixBounce 1s infinite;
}

@keyframes reformixBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.reformix-chat-popup,
#reformix-chat-popup {
    position: fixed !important;
    bottom: 120px !important;
    right: 30px !important;
    width: 380px !important;
    height: 510px !important;
    background: white !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    z-index: 999 !important;
    overflow: hidden !important;
    display: none !important;
    animation: reformixSlideUp 0.3s ease-out !important;
}

.reformix-chat-popup.show,
#reformix-chat-popup.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes reformixSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reformix-chat-header {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reformix-chat-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.reformix-chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reformix-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.reformix-chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.reformix-msg {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.reformix-msg.reformix-user {
    align-items: flex-end;
}

.reformix-msg.reformix-admin {
    align-items: flex-start;
}

.reformix-msg-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.reformix-msg.reformix-user .reformix-msg-content {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
}

.reformix-msg.reformix-admin .reformix-msg-content {
    background: white;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

/* User Chat Message Styles */
.user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 8px 0;
}

.admin-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 8px 0;
}

.user-message .message-bubble {
    background: var(--reformix-primary-color, #3b82f6);
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
}

.admin-message .message-bubble {
    background: #e5e7eb;
    color: #374151;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.message-image {
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
}

.file-message {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: inherit;
}

.file-message a {
    color: inherit;
    font-size: 12px;
    text-decoration: underline;
}

.upload-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 8px 0;
    opacity: 0.7;
}

.upload-message div {
    background: var(--reformix-primary-color, #3b82f6);
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
}

.empty-chat {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.file-preview-box {
    background: #e5e7eb;
    color: #374151;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 8px 0;
    text-align: center;
}

.preview-status {
    color: var(--reformix-primary-color, #3b82f6);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.preview-name {
    color: #374151;
    font-weight: 600;
    margin-bottom: 4px;
}

.preview-size {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 12px;
}

.send-file-btn {
    background: var(--reformix-primary-color, #3b82f6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 8px;
}

.cancel-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.send-file-btn:hover {
    background: var(--reformix-primary-dark, #2563eb);
}

.cancel-file-btn:hover {
    background: #dc2626;
}

.file-preview-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 8px 0;
}

.file-preview-message .file-preview-box {
    max-width: 80%;
    margin: 0;
}

/* Remove background for file messages */
.reformix-msg-content .reformix-chat-image,
.reformix-msg-content .reformix-chat-file,
.reformix-msg-content .reformix-chat-video {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.reformix-msg-content:has(.reformix-chat-image),
.reformix-msg-content:has(.reformix-chat-file),
.reformix-msg-content:has(.reformix-chat-video) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.reformix-msg-time {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
    padding: 0 8px;
}

.reformix-welcome-msg {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 40px 20px;
}

.reformix-chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.reformix-input-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* File Selection Menu */
.reformix-file-menu {
    position: absolute;
    bottom: 70px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1000;
    min-width: 200px;
}

.reformix-menu-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.reformix-menu-option:hover {
    background: #f9fafb;
}

.reformix-menu-option:first-child {
    background: #374151;
    color: white;
}

.reformix-menu-option:first-child:hover {
    background: #4b5563;
}

/* File Preview Panel */
.reformix-file-preview-panel {
    padding: 0;
    background: transparent;
    margin-bottom: 12px;
}

.reformix-file-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reformix-counter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reformix-check-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.reformix-file-counter span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.reformix-close-preview {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    transition: background-color 0.2s;
}

.reformix-close-preview:hover {
    background: #f3f4f6;
}

.reformix-file-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.reformix-file-thumbnail {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reformix-file-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.reformix-file-icon {
    color: #9ca3af;
}

.reformix-file-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
}

.reformix-remove-file {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s;
}

.reformix-remove-file:hover {
    background: rgba(0, 0, 0, 0.9);
}

.reformix-alt-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.reformix-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    word-break: break-all;
    line-height: 1.4;
}

.reformix-send-files-btn {
    width: 100%;
    background: #374151;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reformix-send-files-btn:hover {
    background: #4b5563;
}

.reformix-chat-file-input {
    display: none;
}

.reformix-attach-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    visibility: visible !important;
}

.reformix-attach-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}



#reformix-chat-message {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    transition: all 0.2s;
    display: block !important;
    visibility: visible !important;
    background: #f8fafc;
}

#reformix-chat-message:focus {
    outline: none;
    border-color: var(--reformix-primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.reformix-send-btn {
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    visibility: visible !important;
}

.reformix-send-btn:hover {
    transform: scale(1.05);
}

.reformix-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



/* Ultra-strong visibility enforcement for chat elements */
.reformix-input-row,
.reformix-send-btn,
.reformix-attach-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Maximum priority for send button - prevent any hiding */
.reformix-send-btn,
button.reformix-send-btn,
.reformix-input-row .reformix-send-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, var(--reformix-primary-color, #667eea) 0%, var(--reformix-primary-dark, #5a67d8) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#reformix-chat-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
}

.reformix-chat-input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Prevent any interference with chat elements */
.reformix-chat-popup * {
    box-sizing: border-box !important;
}

.reformix-file-preview {
    position: relative !important;
    z-index: 998 !important;
}

@keyframes reformixSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Error States */
.reformix-error {
    background: #fed7d7;
    color: #c53030;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #feb2b2;
    font-weight: 500;
}

.reformix-msg.reformix-error .reformix-msg-content {
    background: #fed7d7;
    color: #c53030;
    border-color: #feb2b2;
}

.reformix-msg.reformix-sending .reformix-msg-content {
    opacity: 0.6;
    position: relative;
}

.reformix-msg.reformix-sending .reformix-msg-content::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: reformixSpin 1s linear infinite;
}

/* File Preview in Messages */
.reformix-file-preview-msg {
    max-width: 90% !important;
    align-self: flex-end;
    margin-bottom: 16px;
}

.reformix-file-preview-msg .reformix-file-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reformix-file-preview-msg .reformix-counter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reformix-file-preview-msg .reformix-check-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.reformix-file-preview-msg .reformix-close-preview {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6b7280;
    font-size: 16px;
    font-weight: bold;
}

.reformix-file-preview-msg .reformix-file-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

.reformix-file-preview-msg .reformix-file-thumbnail {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reformix-file-preview-msg .reformix-file-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.reformix-file-preview-msg .reformix-file-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
}

.reformix-file-preview-msg .reformix-remove-file {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.reformix-file-preview-msg .reformix-alt-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.reformix-file-preview-msg .reformix-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    word-break: break-all;
    line-height: 1.4;
}

.reformix-file-preview-msg .reformix-send-files-btn {
    width: 100%;
    background: #374151;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes reformixSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reformix-tracking-container {
        padding: 15px;
    }
    
    .reformix-card-header,
    .reformix-card-body {
        padding: 30px 20px;
    }
    
    .status-header-section {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 40px 20px;
    }
    
    .timeline-horizontal {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .timeline-horizontal::-webkit-scrollbar {
        height: 4px;
    }
    
    .timeline-horizontal::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .timeline-horizontal::-webkit-scrollbar-thumb {
        background: var(--reformix-primary-color, #667eea);
        border-radius: 2px;
    }
    
    .timeline-step-h {
        min-width: 70px;
        flex-shrink: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section,
    .timeline-section,
    .actions-section {
        padding: 40px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .reformix-chat-popup {
        width: calc(100vw - 40px);
        height: 500px;
        bottom: 120px;
        right: 20px;
        left: 20px;
    }
    
    .reformix-chat-toggle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .reformix-card-header h3 {
        font-size: 24px;
    }
    
    .status-icon-large {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .status-text h2 {
        font-size: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .reformix-chat-messages {
        height: 350px;
    }
}

/* Print Styles */
@media print {
    .reformix-chat-toggle,
    .reformix-chat-popup,
    .actions-section {
        display: none !important;
    }
    
    .reformix-pro-dashboard {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .status-header-section {
        background: white !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .reformix-tracking-container {
        background: transparent;
    }
    
    .reformix-pro-dashboard,
    .reformix-tracking-card,
    .info-card {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .status-header-section,
    .info-section {
        background: #1a202c;
    }
    
    .card-value {
        color: #e2e8f0;
    }
    
    .reformix-chat-messages {
        background: #1a202c;
    }
    
    .reformix-msg.reformix-admin .reformix-msg-content {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}