/* Global */
:root {
    --bg: #ccc;
	--bgb: #eee;
    --text: #333;
    --link: blue;
    --nav-link: #eee;
}

/* Dark mode overrides */
body.dark {
    --bg: #444;
	--bgb: #333;
    --text: #e4e4e4;
    --link: #4da3ff;
    --nav-link: #ccc;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: var(--link); }
a:visited { color: var(--text); }
.nav a { color: var(--nav-link); }
h2{ margin:-3px;}
/* Container */
.form-container {
    min-width: 320px;
	max-width:550px;
    margin: 20px auto;
    background: var(--bgb);
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Headings */
.form-container h2 {
    margin-bottom: 20px;
  
    font-weight: 600;
}

/* Labels */
label {
    font-size: 14px;
    color: var(--text);
    display: block;
    margin-bottom: 5px;
}

/* Inputs */
input[type="text"],
select,
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
    width: 95%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    transition: 0.2s;
}

/* Input Focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: #0077ff;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0,119,255,0.1);
}

/* Button */
button,
input[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Button Hover */
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #005ce6, #00aaff);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Table (for leads list) */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

table th {
    background: #0077ff;
    color: white;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: var(--text);
	color: var(--bg)
}



/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    color: #777;
}


.message-thread {
    max-width: 800px;
	max-height: 600px;
	overflow-x:auto;
    margin: auto;
    padding: 20px;
    background: #f5f7fb;
    border-radius: 8px;
}

/* Base message bubble */
.message {
    max-width: 70%;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    clear: both;
}

/* Company messages (right side) */
.message.company {
    background: #007bff;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
	overflow:hidden;
}
.message.company a {
    color: yellow;
}
.message.company a:hover {
    color: #fff;
}
/* Lead messages (left side) */
.message.customer {
    background: #e4e6eb;
    color: #000;
    margin-right: auto;
    border-bottom-left-radius: 4px;
	overflow:hidden;
}

/* Message time */
.message-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

/* Input area */
.message-input {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.message-input textarea {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
    height: 40px;
}

.message-input button {
    padding: 10px 18px;
    background: #28a745;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
.button{
    width: 50px;
	height: 50px;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
	display: flex;            /* enable flex centering */
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    padding: 0;               /* remove padding to keep icon centered */
}
.button:hover{
     background: linear-gradient(135deg, #005ce6, #00aaff);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}




.lead-card {
    background: var(--bgb);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.lead-top {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 8px;
}

.lead-category {
    font-weight: 600;

}

.lead-time {
 
}

.lead-body {
    margin-bottom: 12px;
}

.lead-type {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.lead-details {
    font-size: 14px;

    display: flex;
    gap: 10px;
}

.lead-value {
    font-weight: 600;

}

.lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-location {
    font-size: 13px;
}

.lead-btn {
    background: #111;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.lead-btn:hover {
    background: #333;
}




.report-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.report-container h2 {
    margin-bottom: 15px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.report-table th {
    background: #111;
    color: var(--text);
    text-align: left;
    padding: 12px;
    font-size: 13px;
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.report-table tr:hover {
    background: var(--text);
	color:var(--bg);
}

/* Status badges */
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-purchased {
    background: #d1fae5;
    color: #065f46;
}

.status-viewed {
    background: #dbeafe;
    color: #1e3a8a;
}

.status-sent {
    background: #fef3c7;
    color: #92400e;
}

.status-notified {
    background: #e5e7eb;
    color: #374151;
}

.status-queued {
    background: #fee2e2;
    color: #991b1b;
}


.star-mask {
    width: 200px;
    overflow: hidden;
}

.star-fill img {
    display: block;
}


.notice{ background-color:rgba(255,255,255,0.3); border:thin solid #fff; padding:1em; clear:both; margin-bottom:10px;}


/*TOPBAR*/
.topbar {
    background:#222;
    color:#fff;
    padding:10px;
}

.topbar-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.logo {
    flex:1;
    color:#fff;
    font-size:14px;
}

/* NAV default desktop */
.nav {
    display:flex;
    gap:10px;
}

.nav a {
    color:#fff;
    text-decoration:none;
    padding:5px 8px;
}

.nav a:hover {
    background:#444;
    border-radius:4px;
}

/* hamburger hidden on desktop */
.menu-toggle {
    display:none;
    font-size:26px;
    cursor:pointer;
    color:#fff;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display:block;
    }

    .nav {
        display:none;
        position:absolute;
        top:60px;
        right:10px;
        background:#222;
        flex-direction:column;
        width:200px;
        padding:10px;
        border-radius:6px;
        z-index:999;
    }

    .nav.show {
        display:flex;
    }
}
.cron{
	 background: #fff;
}

