/* Mark's Tech Solution - Custom Branding CSS
   Overrides osTicket default blue theme with orange (#ff6600) brand colors
   Loaded after theme.css to override styles
*/

/* ---- Links ---- */
a, .link {
    color: #ff6600;
}
a:hover, .link:hover {
    border-bottom: 1px dotted #ff6600;
}

/* ---- Headings ---- */
h1 {
    color: #cc5200;
}

/* ---- Body background ---- */
body {
    background: #f5f5f5;
}

/* ---- Container ---- */
#container {
    background: #fff;
    width: 940px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ---- Header ---- */
#header {
    background: linear-gradient(135deg, #ff6600, #cc5200);
    height: 80px;
    padding: 0 24px;
    border-radius: 0;
}

#header #logo img {
    max-height: 70px;
    max-width: 400px;
    filter: brightness(0) invert(1);
}

#header p {
    color: #ffe0cc;
}

#header p a {
    color: #fff;
    text-decoration: none;
}

#header p a:hover {
    border-bottom: 1px solid #fff;
}

/* ---- Navigation ---- */
#nav {
    margin: 0 24px;
    padding: 2px 10px;
    height: 24px;
    background: #fff;
    border-top: 2px solid #ff6600;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}

#nav li a {
    color: #555;
    border-radius: 4px;
    line-height: 20px;
}

#nav li a.active,
#nav li a:hover {
    background-color: #fff7f0;
    color: #cc5200;
}

#nav li a.active {
    font-weight: bold;
}

/* ---- Buttons ---- */
.button,
.button:visited {
    background-color: #ff6600;
    border-radius: 6px;
    font-size: 15px;
    padding: 6px 20px;
    box-shadow: 0 2px 4px rgba(255,102,0,0.3);
    text-shadow: 0 -1px 1px rgba(0,0,0,0.2);
}

.button:hover {
    background-color: #cc5200;
    color: #fff;
}

.green.button,
.green.button:visited {
    background-color: #ff6600;
}

.green.button:hover {
    background-color: #cc5200;
}

.blue.button,
.blue.button:visited {
    background-color: #ff6600;
}

.blue.button:hover {
    background-color: #cc5200;
}

/* ---- Content area ---- */
#content {
    padding: 24px 0;
    margin: 0 24px;
}

/* ---- Landing page ---- */
#landing_page h1,
#landing_page h2,
#landing_page h3 {
    color: #cc5200;
}

.search-form {
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    width: 70%;
}

.search-form input[type="text"]:focus {
    border-color: #ff6600;
    outline: none;
}

.search-form .button {
    padding: 8px 20px;
    vertical-align: middle;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 250px;
    margin-left: 20px;
}

.front-page-button .button {
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 6px;
}

.sidebar .content {
    background: #fff7f0;
    border: 1px solid #ffe0cc;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
}

.sidebar section .header {
    color: #cc5200;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar .content a {
    color: #ff6600;
    text-decoration: none;
}

.sidebar .content a:hover {
    text-decoration: underline;
    border-bottom: none;
}

/* ---- Main content ---- */
.main-content {
    width: 640px;
}

/* ---- Footer ---- */
#footer {
    background: #1a1a1a;
    color: #999;
    padding: 20px 24px;
    margin-top: 20px;
    font-size: 12px;
}

#footer a {
    color: #ff6600;
}

#footer p {
    color: #999;
    margin: 6px 0;
}

#footer #poweredBy {
    display: none !important;
}

/* ---- Forms ---- */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 4px rgba(255,102,0,0.15);
}

input[type="submit"] {
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255,102,0,0.3);
}

input[type="submit"]:hover {
    background-color: #cc5200;
}

input[type="reset"],
input[type="button"] {
    background-color: #e0e0e0;
    color: #555;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 15px;
    cursor: pointer;
}

input[type="reset"]:hover,
input[type="button"]:hover {
    background-color: #d0d0d0;
}

/* ---- Login box ---- */
.login-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff7f0;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 250px;
    margin-bottom: 10px;
}

.login-box .btn {
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 15px;
    cursor: pointer;
}

.login-box .btn:hover {
    background-color: #cc5200;
}

/* ---- Tables ---- */
table {
    border-collapse: collapse;
}

.infoTable {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.infoTable .headline {
    background: #ff6600;
    color: #fff;
    padding: 8px 12px;
    font-weight: bold;
}

.infoTable th {
    background: #fff7f0;
    color: #cc5200;
    padding: 6px 12px;
    border-bottom: 1px solid #ffe0cc;
    font-weight: bold;
}

.infoTable td {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ---- Messages ---- */
#msg_notice {
    border: 1px solid #ff6600;
    background: #fff7f0;
    color: #cc5200;
    border-radius: 6px;
}

#msg_error {
    border: 1px solid #cc0000;
    background: #fff0f0;
    color: #cc0000;
    border-radius: 6px;
}

#msg_warning {
    border: 1px solid #f26522;
    background: #fff7f0;
    border-radius: 6px;
}

/* ---- Thread entries ---- */
.thread-entry .header {
    background: #fff7f0;
    border-left: 4px solid #ff6600;
}

.thread-entry.response .header {
    border-left-color: #ff6600;
}

/* ---- Captcha ---- */
.captcha img {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* ---- Form headers ---- */
.form-header {
    color: #cc5200;
}

/* ---- Custom data tables ---- */
.custom-data .headline {
    background: #fff7f0;
    color: #cc5200;
    border-bottom: 2px solid #ff6600;
}

/* ---- Action buttons ---- */
.action-button {
    background: #fff7f0;
    border: 1px solid #ffe0cc;
    color: #cc5200;
    border-radius: 4px;
}

.action-button:hover {
    background: #ff6600;
    color: #fff;
}

/* ---- Warning banner ---- */
.warning-banner {
    background: #fff7f0;
    border: 1px solid #ff6600;
    border-radius: 6px;
    color: #cc5200;
    padding: 8px 14px;
}

/* ---- Featured categories ---- */
.featured-category {
    border: 1px solid #ffe0cc;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff7f0;
}

.featured-category .category-name {
    color: #cc5200;
    font-weight: bold;
    font-size: 15px;
}

/* ---- Select2 overrides ---- */
.select2-container--default .select2-selection--single {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #ff6600;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ff6600;
}
