/* Brindleford Technologies - Custom osTicket Theme
   Matches brindleford.co.uk design system
   Font: Manrope | Primary: #3f78e0 | Navy: #343f52 | Body: #60697b
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ========================================
   BASE / TYPOGRAPHY
   ======================================== */

html {
    font-size: 100%;
}

body {
    background: #f6f7f9 !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    color: #60697b;
    margin: 0;
    padding: 0;
}

body, input, select, textarea {
    font-family: 'Manrope', sans-serif !important;
    color: #60697b;
}

h1, h2, h3, h4, h5, h6 {
    color: #343f52;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: #3f78e0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #2a5cbd;
}

p {
    color: #60697b;
    line-height: 1.7;
}

/* ========================================
   LAYOUT / CONTAINER
   ======================================== */

#container {
    background: #ffffff;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 8px 8px;
}

/* ========================================
   HEADER
   ======================================== */

#header {
    position: relative;
    height: auto;
    padding: 20px 30px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
}

#header #logo img {
    max-height: 55px;
    max-width: 280px;
    width: auto;
    height: auto;
    vertical-align: middle;
}

#header .pull-right,
#header .flush-right {
    float: right;
}

#header p {
    width: auto;
    margin: 0;
    padding: 8px 0 0;
    font-size: 13px;
    color: #60697b;
}

#header p a {
    color: #3f78e0;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 50rem;
    transition: all 0.2s ease;
}

#header p a:hover {
    background: #3f78e0;
    color: #fff;
}

/* ========================================
   NAVIGATION
   ======================================== */

#nav {
    margin: 0;
    padding: 0 30px;
    height: auto;
    background: #343f52;
    border-top: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

#nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

#nav li a {
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 1;
    text-align: center;
    padding: 12px 18px 12px 38px;
    margin: 0;
    color: #cacaca;
    border-radius: 0;
    background-position: 14px 50%;
    background-repeat: no-repeat;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    text-decoration: none;
}

#nav li a.active,
#nav li a:hover {
    background-color: rgba(63, 120, 224, 0.15);
    color: #ffffff;
}

#nav li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

#nav li a.active {
    background-color: rgba(63, 120, 224, 0.2);
    color: #ffffff;
}

/* Nav icons - lighten them */
#nav li a.home { background-image: url('../assets/default/images/icons/home.png'); filter: brightness(2); }
#nav li a.kb { background-image: url('../assets/default/images/icons/kb.png'); filter: brightness(2); }
#nav li a.new { background-image: url('../assets/default/images/icons/new.png'); filter: brightness(2); }
#nav li a.status { background-image: url('../assets/default/images/icons/status.png'); filter: brightness(2); }
#nav li a.tickets { background-image: url('../assets/default/images/icons/tix.png'); filter: brightness(2); }

/* ========================================
   CONTENT AREA
   ======================================== */

#content {
    padding: 30px 30px;
    margin: 0;
    min-height: 400px;
}

/* Landing page */
#landing_page h1 {
    color: #343f52;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

#landing_page #new_ticket,
#landing_page #check_status {
    width: auto;
    padding-left: 75px;
    margin-top: 30px;
}

#landing_page #new_ticket h3,
#landing_page #check_status h3 {
    color: #343f52;
}

.main-content {
    width: 100%;
    max-width: 700px;
}

/* ========================================
   BUTTONS
   ======================================== */

.button,
.button:visited,
.green.button,
.green.button:visited {
    background: #3f78e0 !important;
    border: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif !important;
    padding: 10px 24px;
    max-width: none;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-radius: 50rem;
    box-shadow: none;
    text-shadow: none;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.button:hover,
.green.button:hover {
    background: #2a5cbd !important;
    color: #fff;
    box-shadow: 0 4px 12px rgba(63, 120, 224, 0.35);
}

.button:active,
.green.button:active {
    top: 0;
    background: #2350a8 !important;
    box-shadow: none;
}

.blue.button,
.blue.button:visited {
    background-color: #343f52 !important;
}

.blue.button:hover {
    background-color: #2a3344 !important;
    box-shadow: 0 4px 12px rgba(52, 63, 82, 0.35);
}

input[type="submit"],
input[type="button"],
button[type="submit"] {
    background: #3f78e0;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50rem;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
    background: #2a5cbd;
    box-shadow: 0 4px 12px rgba(63, 120, 224, 0.35);
}

/* ========================================
   FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
    border: 1px solid #e0e3e8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #343f52;
    background: #fefefe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Manrope', sans-serif;
    width: auto;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #3f78e0;
    box-shadow: 0 0 0 3px rgba(63, 120, 224, 0.12);
    outline: none;
}

label {
    color: #343f52;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   TABLES (Ticket lists, etc.)
   ======================================== */

table.list {
    width: 100%;
    border-collapse: collapse;
}

table.list thead th,
.fixed_table thead th,
table thead th {
    background: #343f52;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.list tbody td,
.fixed_table tbody td,
table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
    color: #60697b;
}

table.list tbody tr:hover,
.fixed_table tbody tr:hover {
    background: #f6f7f9;
}

/* Ticket priority colours */
.prioritylabel {
    border-radius: 50rem;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   MESSAGES / ALERTS
   ======================================== */

#msg_notice {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    color: #2a6496;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

#msg_warning, .warning-banner {
    background: #fef9e7;
    border: 1px solid #f0d78c;
    color: #8a6d3b;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

#msg_error {
    background: #fdf2f2;
    border: 1px solid #f0c0c0;
    color: #a94442;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

#msg_info {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    color: #2a6496;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error_bar {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.warning_bar {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.notice_bar {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

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

#sidebar,
.sidebar {
    background: #f6f7f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eef0f3;
}

#sidebar h3,
.sidebar h3 {
    color: #343f52;
    font-size: 1rem;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3f78e0;
}

/* ========================================
   KNOWLEDGE BASE
   ======================================== */

.faq-categories,
.faq-category {
    margin: 0;
    padding: 0;
}

.faq-categories li,
.faq-category li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
}

.faq-categories a,
.faq-category a {
    color: #3f78e0;
    font-weight: 600;
    font-size: 15px;
}

.faq-categories a:hover,
.faq-category a:hover {
    color: #2a5cbd;
}

/* ========================================
   TICKET THREAD
   ======================================== */

.thread-entry {
    border: 1px solid #eef0f3;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.thread-entry .header {
    background: #f6f7f9;
    padding: 10px 15px;
    border-bottom: 1px solid #eef0f3;
    font-size: 13px;
    color: #60697b;
}

.thread-entry .thread-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.7;
    color: #343f52;
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    background: #262b32;
    text-align: center;
    font-size: 13px;
    color: #cacaca;
    padding: 25px 30px;
    border-radius: 0 0 8px 8px;
}

#footer a {
    color: #3f78e0;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #ffffff;
}

#footer p {
    margin: 0;
    color: #cacaca;
}

#footer #poweredBy {
    display: none;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-page #content,
form[name="login"] {
    max-width: 420px;
    margin: 0 auto;
}

/* ========================================
   SECTION BREAKS
   ======================================== */

div.section-break {
    border-top: 2px solid #eef0f3;
    margin-top: 1.5em;
    padding-top: 1em;
}

div.section-break h3 {
    color: #3f78e0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   FILE DROP
   ======================================== */

.filedrop {
    border: 2px dashed #d0d5dd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #60697b;
    transition: border-color 0.2s ease;
}

.filedrop:hover,
.filedrop.dragover {
    border-color: #3f78e0;
    background: #f0f4fd;
}

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

@media (max-width: 768px) {
    #container {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }

    #header {
        padding: 15px 20px;
    }

    #header #logo img {
        max-height: 40px;
        max-width: 200px;
    }

    #header p {
        font-size: 12px;
    }

    #nav {
        padding: 0 15px;
        flex-wrap: wrap;
    }

    #nav li a {
        padding: 10px 12px 10px 32px;
        font-size: 12px;
    }

    #content {
        padding: 20px 15px;
    }

    .main-content {
        width: 100%;
    }

    #landing_page #new_ticket,
    #landing_page #check_status {
        width: 100%;
        padding-left: 0;
        background-image: none !important;
    }

    #footer {
        border-radius: 0;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    #header .pull-right {
        float: none;
        text-align: center;
    }

    #nav li a {
        padding: 8px 10px;
        padding-left: 10px;
        background-image: none !important;
        filter: none !important;
    }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
}

/* ========================================
   MISC OVERRIDES
   ======================================== */

/* Hide old background image */
body {
    background-image: none !important;
}

/* Cleaner captcha area */
#captcha {
    margin: 15px 0;
}

/* Pagination */
.pager,
.pagination {
    font-size: 13px;
}

.pager a {
    color: #3f78e0;
    padding: 4px 10px;
    border-radius: 4px;
}

.pager a:hover {
    background: #3f78e0;
    color: #fff;
}

/* Required field indicator */
.required {
    color: #c0392b;
}

/* Tooltip */
.tooltip-content {
    background: #343f52;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}
