/* **********************************************************************************************
 *   Final Merged Name : comkinbase.css (combined styles)                                       *
 *   Created on        : Sept 28, 2025                                                         *
 *   Author            : C. Thilakarathna (web: thilak.comkin.net, email:chamiya1977@gmail.com) *
 *   Company           : Computer Kingdom.                                                     *
 *   Dependencies      : Must use with comkinbase.js                                            *
 *   Copy Rights       : All rights reserved by Computer Kingdom by CK Licence Agreement.       *
 *                      Please refer https://comkin.net/copyrights/CKL/                        *
 ************************************************************************************************/

/* General resets and helpers */
body {
    margin: 0 auto;
    padding: 0;
    background: #f9f9f9;
    color: #222;
    font-family: Arial, sans-serif;
}

/* Error messages */
.ck_data_error {
    color: red;
    padding: 2px 5px 5px 5px;
}

/* Checkboxes */
.big_check_box,
.big_chk_box {
    width: 40px;
    height: 40px;
    margin-right: 5px;
    transform: scale(1.2);
    display: inline;
}

label .big_check_box {
    font-size: 40px;
    margin: 15px;
}

/* Form groups */
.mb-3 {
    background: #fdfdfd;
    border-radius: 10px;
    padding: 10px 5px;
}
.form-label {
    color: #7ab720;
}
.width_80 {
    width: 80%;
}

/* Hide helper */
.ck_hide {
    display: none;
}

/* Grid layout */
ul.grid-boxes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
}
ul.grid-boxes li {
    border: 1px solid #ccc;
    background: #f9f9f9;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Headings and buttons */
.head_line {
    background: #7ab720;
    color: #fff;
}
.body_button {
    padding: 2px;
}
.ck_button {
    display: inline-block;
    border: 2px solid #0000ff;
    background: #00aaff;
    color: white;
    text-align: center;
    padding: 2px 10px;
    margin: 10px auto;
    border-radius: 10px;
    text-decoration: none;
    width:100%;
    max-width: 800px;
    font-size: 2rem;
}

/* Multi-select subjects */
.subject_multi_select label div {
    display: inline-block;
}
.subject_multi_select label {
    width: 100%;
}

/* Promo details */
.promo_details_slot {
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid gray;
}

/* Record view */
.record:nth-child(even) { background-color: #f8f9fa; }
.record:nth-child(odd) { background-color: #ffffff; }
.record {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}
@media (min-width: 992px) {
    .record {
        display: flex;
        align-items: center;
    }
    .record .form-group {
        flex: 1;
        margin-right: 1rem;
    }
    .width_limit {
        max-width: 200px;
    }
}

/* Information, warning, errors */
.information_text {
    background: #7ab720;
    color: white;
    text-decoration: none;
}
.warning_text {
    background: #1919E2;
    color: white;
    text-decoration: none;
}
.error_text {
    color: red;
    background: white;
    border: none !important;
    text-decoration: none;
}
table .information_text { border: 1px solid gray; }
table .error_text {
    background: #E21919;
    color: white;
    border: 1px solid gray;
}

/* Tables */
th {
    background: black;
    color: white;
    border: 1px solid gray;
    padding: 5px 10px;
}
.information_text td,
.error_text td {
    border: 1px solid gray;
    padding: 5px 10px;
}
.border_gray tr,
.border_gray td,
.border_gray th {
    border: 1px solid gray;
}

/* Task box */
.task_box {
    cursor: pointer !important;
    color: #222;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.task_box .title {
    padding: 5px;
    margin: 0;
    background: #bf2222;
    text-align: left;
}
.title_head_block{
    font-size: 4rem;
    text-align: center;
    color: #5affb9;    
    background: #444;
    padding: 20px;
}
.task_box .details {
    color: #869fea;
    padding: 5px;
    text-align: justify;
}
.task_slot {
    text-align: center;
    margin-bottom: 30px;
}
.task_slot input {
    width: 50px;
    height: 50px;
    position: relative;
    top: -25px;
}

/* Attendance */
.attendance {
    cursor: pointer !important;
    background: #fff;
    padding: 0;
    overflow: hidden;
}
.attendance_in .name {
    font-size: 36px;
    color: #dfff00;
    background: #0004ff;
    margin-top: 0;
}
.attendance_in .button {
    font-size: 40px;
    background: black;
}
.attendance_out .name {
    font-size: 36px;
    color: #000;
    background: #29ec00;
    margin-top: 0;
}
.attendance_out .button {
    font-size: 40px;
    background: red;
}

/* Horizontal task scroller */
.task_scroller {
    display: flex;
    overflow-y: auto;
    gap: 10px;
    padding: 10px;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}
.task_scroller a.task_box {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

/* Dropdowns */
.dropper,
.subdropper {
    background-image: url('/images/arrow_pointer.gif');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto 40px;
    border-radius: 5px;
    cursor: pointer;
}
.subdropper {
    border: 1px solid white;
}
.up {
    background-image: url('/images/arrow_pointer_up.gif');
}
.down {
    background-image: url('/images/arrow_pointer_down.gif');
}

/* Panels */
.panel_title { padding: 10px; font-weight: bold; }
.urgent { background-color: #bf2323; color: white; }
.panel {
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    padding: 0 0 10px 0;
}
.sub_panel {
    font-size: 20px;
    text-align: justify;
    cursor: pointer;
    display: block;
    margin: 0 0 20px 10px;
    border-radius: 10px;
    border: 3px solid white;
}
.sub_panel.urgent { background-color: #4052b5; }
.big_margin { margin: 30px 0; }

/* Scroll UI */
.scroll_right {
    right: 0;
    background-image: url('/images/animate_bullet.gif');
}
.scroll_left {
    background-image: url('/images/animate_bullet_right.gif');
}
.screen_row {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.middle {
    width: 100%;
    overflow-x: auto;
    position: relative;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-color: rgba(0,0,255,.7);
}
.scroll_content {
    display: flex;
}
.scroll_left,
.scroll_right {
    max-width: 100px;
    max-height: 100px;
    background-position: center center;
    background-size: 40px 100px;
    position: absolute;
    top: 25%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    font-weight: bold;
    opacity: .5;
}
.left_but { left: 0; }
.right_but { right: 0; }

/* Other components */
.scroll-container {
    border-bottom: 3px dotted gray !important;
    text-align: center;
}
.scroll-container table { margin: auto; }
.scroll-container:nth-child(even) { background-color: #f0f8ff; }
.scroll_container:nth-child(odd) { background-color: #fff5e6; }

.total_marks_box {
    position: fixed;
    top: 120px;
    left: 20px;
    background: #ffa9a9;
    border: 2px solid #f00;
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 25px;
    font-weight: bolder;
}

.accordion-button {
    background-color: #dde7f7;
    font-weight: bolder;
}
.accordion-button:not(.collapsed) {
    background-color: #0040ff;
    color: white;
}

/* Options & help */
.main-option {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}
.sub-options {
    margin-left: 2rem;
    background-color: #f3f3f3;
    padding: 10px;
    border-left: 3px solid #ccc;
    display: none;
    overflow: scroll;
}
.sub-options label {
    display: inline-block;
    margin: 5px 10px;
}
.help_topic { font-weight: bolder; color: #2d2d2d; margin-top: 15px; }
.help_text { color: #ddd; }
.agrements ol { color: #2d2d2d; }

/* Billing */
.bill { margin-left: 20px; }
.bill td, .bill th { padding: 3px 10px; font-size: 20px; }

/* Forms */
.form_single_row { display: flex; }
.form_single_row span { position: relative; top: 7px; padding-left: 10px; }
.list_box {
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
}
.subject_cat { text-decoration: underline; padding-left: 20px; }
.chk_button {
    text-align: center;
    display: inline;
    padding: 5px 10px;
    border: 2px solid #c6c6c6;
    margin: 3px;
    border-radius: 5px;
    background: white;
}
.special_note { color: blue; font-weight: bold; }

/* Video help */
.video_help_button {
    text-align: center !important;
    background: #6caa6c !important;
    color: #fff !important;
    border: 2px solid #000;
    border-left: none;
    border-right: none;
    border-left-color: rgb(223, 255, 0);
    border-right-color: rgb(223, 255, 0);
}
.text-help img,
.voice-help img {
    max-width: 50px;
    cursor: pointer;
}
.help-buttons { display: flex; }

/* Fieldset */
fieldset {
    margin-bottom: 30px;
    border-radius: 10px;
}

/* Live image capture */
.panel {
    padding: 12px; margin: 10px 0; border-radius: 8px;
}
button {
    margin: 6px 4px;
    background: blue;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 10px; 
    font-size: 3rem;
}
video { max-width: 100%; height: auto; background: #000; }
canvas { display: block; max-width: 100%; height: auto; }
.preview { margin-top: 8px; }

/* --------- MERGED .selected --------- */
.selected {
    background-color: #b3d4fc;   /* from file2 */
    color: #000;                 /* ensure readability */
    font-weight: bold;
    border: 2px solid #007bff;   /* from file3 */
    padding: 5px 10px;           /* from file3 */
    border-radius: 5px;          /* from file3 */
}
.page_title{
    text-align: center;
    
}
.page_title{
    display: flex;
    align-items: center;
    justify-content: center;    
    
}
.full_width_note{
    font-size: 1.5rem;
    padding: 5px;
    text-align: justify;    
    color: #7d7d7d;
}
.help_box{
    background:none;;
    position: fixed;
    top: 30px;
    width: 100%;  
    
}
.help_container{
    display: none;
    background: #d4ff07;
    border-radius: 20px;
    margin: 10px;

}
.help_container.hide {
  opacity: 0;
  transform: translateY(-200px);
  pointer-events: none; /* Prevent interaction after hiding */
}
.title_main{
    font-size: 2rem;
    background: black;
    color: white;
    font-weight: bolder;
    padding: 5px 10px;
    border-radius: 20px 20px 0px 0px;    
}

.help_title .close_button{
    background: #0010ff;
    width: 28px;
    padding: 5px 5px 5px 12px;
    color: white;
    font-size: 2rem;
    border-radius: 50px;
    font-weight: bolder;
    border: 1px solid black;
    float: right;
    position: relative;
    top: -67px; 
    
}
.help_body{
    padding: 10px 20px 30px 20px;
    color: #333 !important;
    overflow: scroll;
    max-height: 400px;    
}
.help_text{
    color:#333 !important;
}
.section{
    width: 100%;
    text-align: center;
}
.container{
    background: #888;
}
.container h3{
    font-size: 3rem;
    text-align: center;
    padding-top: 30px;
    color: white;    
}
.input_row{
    padding: 20px;
    font-size: 3rem;    
}
.input_row input, select{
    font-size: 6rem;
    background: white !important;
    border: 2px solid white;
    border-radius: 10px;
    max-width: 90%;

}
.input_row label{
    font-size: 6rem;
    color:white;
    float: left;
    text-align: left;
    
}
.big_chk{
    width: 40px;
    height: 40px;
    position: relative;
  
}
.big_chk_label{
    font-size: 3rem !important;
}
.rmemberme{
    text-align: center;
}
.input_row button{
    margin: auto;
    font-size: 3rem;
    background: #0f0;
    border-radius: 20px;
    border: 2px solid white;
    padding: 5px 20px;  
    color: #427be8;
}
.fogot_pw{
    font-size: 3rem;
    text-decoration: none;
    color: white;    
    cursor: pointer;
}
.text-help, .voice-help{
    background: transparent !important;
    border:none !important;
}
.help-buttons{
    float:right;
}

.log_body_section{
    background: #90cc84; 
    text-align: left;
}
.log_body_section p{
    padding: 10px;
}
.fixed_panel_base{
    position: fixed;
    top: 5px;
    left: 0px;
    width:100%;
    z-index: 1000;
}
.fixed_panel{
    background: rgba(0, 0, 0, 0);
    height: 80px;    
    max-width: 1024px;
    margin: auto;
    display: flex;          /* enable flexbox */
    align-items: center;
    gap:20px;
    border-radius: 20px;
    padding: 5px 5px 5px 20px;
    max-width: 90%;
    border: 5px solid gray;
    z-index: 1001;
}

.fixed_button{
    width:70px;
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    padding: 2px;    

}
.fixed_button img{
    height: 100%;
}
.fixed_close{
    float: right;
    position: relative;
    color: red;
    border: 2px solid red;
    border-radius: 50px;
    background: white;
    padding: 5px 10px;
    left: 20px;
    font-size: 2rem;        
    margin-left: auto;

}
.detasec{
    text-align: left;
    color:white;
}
.detasec h1{
    background: black;
    margin-top: 0px;
    padding:5px 5px 5px 30px
    
}
.detasec dl{
    margin-bottom: 0px;
}
.detasec dd{
    font-weight: bolder;
    text-align: justify;
}
.detasec dt{
    margin-left: 75px;
    padding-bottom: 20px;
    text-align: justify;
}
.detasec ol li{
    padding-bottom: 20px;
    padding-left: 20px;
    text-align: justify;
}
.detasec table{
    margin-left: 30px;
    border-collapse: collapse;
}
.detasec table td{
    border:2px solid white;
    padding: 5px;
    font-size: 2rem;
    
}
#imgtxt{
    font-size: 4rem;
    width: 100%;
    
}
audio{
    width:100%;
}
.audio-wrap{
    background: gray;
    min-height: 150px;
}
/*Photo galary list*/
.gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .gallery-item {
        background: black;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        border-radius: 5px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto !important;
        aspect-ratio: 16/9;  /* auto height by ratio */
        background-size: contain;        
    }
    .gallery-item p {
        font-size: 2rem;
        color: #a6a64f;
        font-weight: bolder;
    }

/* --------- MEDIA QUERIES --------- */
@media (max-width: 992px) {
    body { 
        padding: 2px;
        margin: 0 auto;
    }
    .page_title{
        display: block;

    }     
    .input_row label, input{
        display: block;
        
    }
    .input_row input, select{
        margin-left: 10px;
        max-width: 90%;
        min-width: 89%;
    }
    
    .rememberme{
        text-align: left;
    }
   
}


