﻿html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-size: 17px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ✅ Scrollable Chat Container */
.chat-container {
    max-height: 400px;
    font-size: 16pt;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ✅ Chat Bubble Styling */
.chat-bubble {
    padding: 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 16px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* ✅ Sent Messages (Right Side, Blue) */
.sent {
    background: #007aff;
    color: white;
    align-self: flex-end;
}

/* ✅ Received Messages (Left Side, Gray) */
.received {
    background: #e5e5ea;
    color: black;
    align-self: flex-start;
}

/* ✅ Username */
.username {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* ✅ Timestamp */
.timestamp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 5px;
    right: 10px;
}

/* ✅ Adjust timestamp color for received messages */
.received .timestamp {
    color: rgba(0, 0, 0, 0.5);
}

/* ✅ Message */
.message {
    font-size: 16px;
    color: inherit;
    margin-top: 5px;
}

.uploaded-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
}

textarea {
    border: 1px solid #ccc;
    transition: border 0.3s ease;
}

.history-box {
    height: 500px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.reply-box {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: white;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #555;
    padding-bottom: 5px;
}

.to-field {
    font-weight: bold;
}

.cc-link {
    color: #007bff;
    text-decoration: none;
}

    .cc-link:hover {
        text-decoration: underline;
    }

.editor-box {
    height: 120px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
}

.reply-toolbar {
    display: flex;
    padding-top: 5px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-right: 8px;
    color: #555;
}

.send-btn {
    margin-top: 10px;
    width: 100%;
    background-color: #007bff;
    border: none;
    padding: 8px;
    font-size: 16px;
    color: white;
    border-radius: 5px;
}

    .send-btn:hover {
        background-color: #0056b3;
    }

.editor-box {
    height: 120px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item .page-link {
    color: #007bff;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
}

.pagination .page-item .page-link:hover {
    background-color: #f1f1f1;
    border-color: #ddd;
}

/* === Customer Communication Bubble === */
.customer-bubble {
    background-color: #fefefe;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Sender Email */
.customer-bubble {
    border-left: 3px solid #007bff;
    background-color: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .customer-bubble .sender {
        font-style: italic;
        font-weight: bold;
        color: #343a40;
        margin-bottom: 0.25rem;
    }


    .customer-bubble .body {
        color: #212529;
        white-space: pre-wrap;
    }

    .customer-bubble .timestamp {
        font-size: 0.85rem;
        font-style: italic;
        color: #6c757d;
        text-align: right;
        margin-top: 0.75rem;
    }

.message-bubble .timestamp {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: bold;
    color: #6c757d;
    text-align: right;
}

/* === Base Typography === */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "San Francisco", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Focus Styles === */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* === Communication History Box === */
.history-box {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Chat Bubbles === */
.message-bubble {
    background-color: #fff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .message-bubble .sender {
        font-weight: bold;
        font-style: italic;
        color: #343a40;
    }

    .message-bubble .body {
        margin-top: 0.5rem;
        font-size: 0.95rem;
        color: #212529;
        white-space: pre-wrap;
    }

    .message-bubble .timestamp {
        display: block;
        margin-top: 0.75rem;
        font-size: 0.85rem;
        font-style: italic;
        font-weight: bold;
        color: #6c757d;
        text-align: right;
    }

/* === Reply Section === */
.reply-box {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #555;
    padding-bottom: 5px;
}

.editor-box {
    height: 150px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    overflow-y: auto;
}

/* === Send Button === */
.send-btn {
    margin-top: 10px;
    width: 100%;
    background-color: #007bff;
    border: none;
    padding: 8px;
    font-size: 16px;
    color: #fff;
    border-radius: 5px;
}

    .send-btn:hover {
        background-color: #0056b3;
    }

.table-dark th a {
    color: #fff !important; /* White text for dark table headers */
    text-decoration: none !important; /* Remove underline */
    font-weight: bold;
}

    .table-dark th a:hover {
        color: #ffc107 !important; /* Optional: yellow on hover */
        text-decoration: underline;
    }




