﻿html,
body {
    height: 100%;
    margin: 0;
    /*font-family: "Segoe UI", Arial, sans-serif;*/
    font-family: 'Hitachi Sans', Arial, sans-serif;
    background: #f4f6fb;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}


/* =====================================
   HEADER
===================================== */

.portal-header {
    background: #ffffff;
    padding: 1px 15px;
    border-bottom: 1px solid #e5e5e5;
}

    .portal-header .row {
        min-height: 61px;
        align-items: center;
    }

.header-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/*.left-logo {
    max-height: 31px;
}*/

.right-logo {
    max-height: 61px;
}

.portal-title {
    margin: 0;
    color: #0c0c0c;
    /* font-weight: 700;
    font-size: 18px;*/
    text-align: right;
}
.portal-name {
    font-size: 20px;
    font-weight: 700;
    
}

.portal-subtitle {
    margin-top: 3px;
    color: #4D4D4D;
    font-size: 14px;
    font-weight: 600;
}


/* =====================================
   HERO SECTION
===================================== */

.hero-section {
    height: 129px;
    background: linear-gradient(90deg,#b50f12,#e42b2b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrapper {
    text-align: center;
}

/* =====================================
   MENU BUTTONS
===================================== */

.menu-btn {
    width: 280px;/*250*/
    height: 48px;
    font-size: 18px;
    border-radius: 50px;
    border: 3px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    margin: 0 10px;
    transition: all .3s ease;
}

    .menu-btn:hover {
        color: #ffffff;
        border-color: #ffffff;
    }

    .menu-btn-active,
    .menu-btn.active-menu {
        background: #ffffff;
        color: #cf2027 !important;
        border-color: #ffffff;
    }

    .menu-btn:focus,
    .menu-btn:active,
    .menu-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

/* =====================================
   PAGE CONTENT
===================================== */

.page-content {
    flex: 1;
    padding-bottom: 40px;
}

.content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    margin-top: -32px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.position-relative {
    position: relative;
}

.remarks-counter {
    position: absolute;
    right: 35px;
    bottom: 10px;
    color: #6c757d;
    font-size: 12px;
    pointer-events: none;
}

/* =====================================
   SECTION TITLE
===================================== */

.section-title {
    color: #171717;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* =====================================
   FORM CONTROLS
===================================== */

.form-label {
    font-weight: 600;
    color: #2b2b2b;
}

.form-control:not([type="file"]),
.form-select {
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(170, 167, 167, 0.55);
}

    .form-control:focus,
    .form-select:focus {
        border-color:#800707a6;
        box-shadow: none;
    }

textarea.form-control {
    height: auto;
    min-height: 90px;
}

/* =====================================
   BUTTONS
===================================== */

.form-action-buttons {
    text-align: center;
}

    .form-action-buttons .btn-danger {
        min-width: 180px;
        border-radius: 10px;
        background: #cf2027;
        border: none;
    }

    .form-action-buttons .btn-secondary {
        min-width: 120px;
        border-radius: 10px;
    }

/* =====================================
   SEARCH SECTION
===================================== */

#TicketStatusSection .input-group {
    max-width: 605px;
    margin: auto;
}

#TicketStatusSection .btn-danger {
    background: #cf2027;
    border: none;
    width: 113px;
}

/* =====================================
   FOOTER
===================================== */

.portal-footer {
    margin-top: auto;
    background: rgba(216, 216, 216, 0.26);
    color: #010101;
    text-align: center;
    padding: 6px;
    font-size: 12px;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 991px) {

    /*.portal-title {
        font-size: 18px;
    }*/
    .portal-name {
        font-size: 18px;
    }

    .portal-subtitle {
        font-size: 13px;
    }

   /* .left-logo {
        max-height: 32px;
    }*/

    .right-logo {
        max-height: 48px;
    }

    .menu-btn {
        width: 284px;
        height: 51px;
        font-size: 18px;
    }

    .content-card {
        padding: 25px;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .hero-section {
        height: auto;
        padding: 40px 20px;
    }

    .menu-btn {
        width: 100%;
        margin: 8px 0;
    }

    .content-card {
        margin-top: -30px;
        padding: 20px;
        border-radius: 18px;
    }

    .portal-name {
        font-size: 16px;
    }

    .portal-subtitle {
        font-size: 11px;
        
    }

    /*.left-logo {
        max-height: 24px;
    }*/

    .right-logo {
        max-height: 47px;
    }


    .form-action-buttons button {
        width: 70%;
        align-items: center;
    }

        .form-action-buttons button + button {
            margin-top: 10px !important;
            margin-left: 0 !important;
        }
}
/* =====================================
   SUCCESS TICKET MODAL
===================================== */

.ticket-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.ticket-header {
    background: #a91f1ff7;
    color: #fff;
    border: none;
    padding: 18px;
}

    .ticket-header .modal-title {
        font-size: 18px;
        font-weight: 700;
    }

/*.success-icon {
    font-size: 70px;
    color: #198754;
    margin-bottom: 15px;
}*/

.ticket-number {
    color: #cf2027;
    font-size: 36px;
    font-weight: 700;
    word-break: break-word;
}

.btn-close-modal {
    min-width: 180px;
    border-radius: 10px;
    font-weight: 600;
}

/* Tablet */

@media (max-width: 768px) {

    .modal-dialog {
        margin: 108px;
    }

    .ticket-header .modal-title {
        font-size: 18px;
    }

    .success-icon {
        font-size: 60px;
    }

    .ticket-number {
        font-size: 24px;
    }

    .btn-close-modal {
        width: 100%;
    }
}

/* Mobile */

@media (max-width: 576px) {

    .modal-dialog {
        margin: 10px;
    }

    .ticket-modal {
        border-radius: 15px;
    }

    .ticket-header {
        padding: 14px;
    }

        .ticket-header .modal-title {
            font-size: 18px;
        }

    .success-icon {
        font-size: 50px;
    }

    .ticket-number {
        font-size: 24px;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .alert {
        font-size: 12px;
    }

    .btn-close-modal {
        width: 100%;
        min-width: auto;
    }
    .portal-name {
        font-size: 15px;
    }

    .portal-subtitle {
        font-size: 10px;
        
    }
}



/* Search  section */
#ticketResult {
    margin-top: 30px;
}

    #ticketResult .card {
        border-radius: 16px;
    }

    #ticketResult .card-header {
        border-radius: 16px 16px 0 0;
    }

    #ticketResult .badge {
        padding: 10px 18px;
    }

    #ticketResult label {
        color: #413d3d;
        margin-bottom: 5px;
    }

@media(max-width:768px) {

    #ticketResult .card-body {
        padding: 15px;
    }

    #ticketResult .badge {
        width: 100%;
        text-align: center;
    }
}


#ComplaintDetails .card {
    border: 3px solid #b7b7b79c; 
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#ComplaintDetails .card-header {
    border-bottom: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}


#ComplaintDetails input,
#ComplaintDetails textarea {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #333;
    font-weight: 500;
    /*pointer-events: none; */
    user-select: text;
}


#ComplaintDetails label {
    font-size: 16px;
    color: #000;
    margin-bottom: 4px;
}


#ComplaintDetails input:focus,
#ComplaintDetails textarea:focus {
    box-shadow: none;
    border-color: #dc3545;
}



/* Modern Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 9px 20px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}   

 .back-btn:hover i {
     transform: translateX(-4px);
 }

.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.status-closed {
    color: #dc3545;
    background-color: #fce8e8;
}

.status-open {
    color: #198754;
    background-color: #e8f5ee;
}

#Statusremarks {
    height: 120px;
    max-height: 120px;
    overflow-y: auto !important;
    overflow-x: hidden;
    resize: none;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

