@import url('modern-theme.css');

/* ==========================================================================
   High-Specificity Modern Timeline Theming (Dark Mode Defaults)
   ========================================================================== */
.timeline {
    position: relative;
    margin: 20px 0 30px 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.12) !important;
    left: 31px;
    margin: 0;
    border-radius: 4px;
}

.timeline > li {
    position: relative;
    margin-right: 10px;
    margin-bottom: 24px;
}

.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline > li > .timeline-item,
.content .timeline > li > .timeline-item,
body .timeline > li > .timeline-item,
[data-theme="dark"] .timeline > li > .timeline-item,
:root .timeline > li > .timeline-item,
.timeline-item {
    background: #090e1a !important;
    background-color: #090e1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
    margin-left: 64px !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative;
}

.timeline > li > .timeline-item:hover {
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 14px 36px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.timeline > li > .timeline-item > .timeline-header,
.timeline-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.timeline-header a,
.timeline-header a:visited,
.timeline-phone-link {
    color: #38bdf8 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.timeline-header a:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

.timeline-header .reply-message,
.timeline-header .reply-message i {
    color: #38bdf8 !important;
}

.timeline > li > .timeline-item > .timeline-body,
.timeline-body {
    background: transparent !important;
    color: #cbd5e1 !important;
    padding: 14px 18px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    word-break: break-word;
}

.timeline > li > .timeline-item > .timeline-footer,
.timeline-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 10px 18px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline > li > .timeline-item > .time,
.timeline .time {
    color: #94a3b8 !important;
    float: right !important;
    padding: 12px 16px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}

/* Light Theme Overrides */
[data-theme="light"] .timeline:before {
    background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .timeline > li > .timeline-item,
[data-theme="light"] .content .timeline > li > .timeline-item {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.07) !important;
    color: #334155 !important;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

[data-theme="light"] .timeline-header a,
[data-theme="light"] .timeline-phone-link {
    color: #2563eb !important;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-body {
    color: #334155 !important;
}

[data-theme="light"] .timeline > li > .timeline-item > .timeline-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control {
    line-height: 19px;
}

textarea {
    max-width: 100%;
    max-height: 100%;
    resize: vertical;
}

.dropzone {
    border: 2px dashed #0087F7
}

@media only screen and (max-width: 768px) {
    .select-user {
        width: 220px
    }
}
@media only screen and (max-width: 768px) {
    .select-contacts-list {
        width: 125px
    }
}
