/*button,*/
/*a,*/
* {

    font-family: 'Old Standard TT', serif;
}

p, .blockquote {
    margin: 20px 0;
    font-family: 'Old Standard TT', serif;
    padding: 15px 0;
}

.btn-lg {
    padding-top: 10px;
}


label {
    font-family: Prompt;
}

th {
    /*font-size: 1.3rem;*/
    font-family: Kanit;
}

.text-danger {
    color: brown;
}

.fit {
    width: 1px;
    white-space: nowrap;
}

.section {
    padding-top: 100px;
}

tr.line-bottom-none th,
tr.line-bottom-none td {
    border-bottom: none !important;
}

tr.line-top-none th,
tr.line-top-none td {
    border-top: none !important;
    padding-top: 0;
}

li {
    padding: 4px 0;
}

/*li .btn-sm {*/
/*    padding: 2px 6px 4px 6px;*/
/*    font-size: 11px;*/
/*}*/

.agenda-add {
    /*margin-bottom: 20px;*/
}


.title {
    color: #000;
}

ui li {
    padding: 10px;
}

ul li ul li {
    margin-left: 20px;
    font-size: 0.9rem;
}

.current {
    color: #f5593d;
    font-width: bold;
    font-size: 18px;
}

.modal-title {
    font-size: 18px;
    font-family: Prompt;
    font-weight: bold;
}

h3, h4, h5, h6 {
    font-family: 'Old Standard TT', serif;
}


td {
    font-family: Ubuntu;
}

h1 {
    margin: 10px 0;
}

h3 {
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
}

h4 {
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

h5 {
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

h6 {
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
}

.alert ul {
    margin: 0;
}

.success {
    color: #51cbce;
}

.danger {
    color: #f5593d;
}

.card {
    box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.15) !important;
    padding: 20px;
    border-radius: 12px !important;
}

.modal-footer {
    padding: 20px 0;
}

table.td-inside {
    width: 100%;
}

table.td-inside tr:first-child td {
    border-top: none;
}

.modal-dialog {
    margin-top: 0;
    padding-top: 0;
}

h2 {
    padding: 10px 0;
}

h2.percentage {
    border-top: 2px solid #444;
    margin: 0 0 10px 0;
    color: #444;
}

a small {
    font-size: 12px;
    font-family: "Montserrat", "Helvetica", Arial, sans-serif;
    color: #000;
    text-decoration: underline;
}

.download-lists li {
    padding: 4px 0;
}


div.hand-up-wrapper {
    position: fixed;
    bottom: 5%;
    right: 5%;
    text-align: center;
    z-index: 9999;
    display: none;
}


.btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 10px solid #82d553;
    outline: none !important;
    position: relative;
    margin: auto;
    background: #fff url('../img/raise-hand.png') no-repeat center;
    background-size: 50px;
}

.btn-circle:hover {
    border: 10px solid #61c728;
}

.btn-circle img {
    width: 85%;
}

ul.hand-up {
    position: relative;
    z-index: 9999;
}

ul.hand-up li {
    border-radius: 8px;
    border: 1px solid #82d553;
    background: #eaf7e3;
    display: block;
    padding: 8px 10px 4px 10px;
    color: #000;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
    z-index: 9998;
}

span.title {
    font-size: 1.4rem;
    font-family: 'Old Standard TT', serif;
}

.card-category {
    font-size: 1.2rem !important;
}

ul.hand-up li strong {
    font-family: Prompt !important;
}

span.ordering {
    background: #82d553;
    color: #fff;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    display: inline-block;
    border-radius: 50%;
    font-weight: bold;
}

.percent {
    font-family: Signika;
    font-size: 20px;
    border-top: 2px solid #444 !important;
    border-bottom: 2px solid #444 !important;
    margin: 10px 0 !important;
}


.padding-left-0 {
    margin: 0 0 0 0px;
    /*padding-bottom: 10px;*/
    /*border-bottom: 1px solid #eee;*/
    /*font-size: .8rem;*/
}

.padding-left-1 {
    margin: 0 0 0 40px;
    /*padding-bottom: 10px;*/
    /*border-bottom: 1px solid #eee;*/
    /*font-size: .8rem;*/
}

.padding-left-2 {
    margin: 0 0 0 80px;
    /*padding-bottom: 10px;*/
    /*border-bottom: 1px solid #eee;*/
    /*font-size: .8rem;*/
}


.form-switch.form-switch-lg {
    margin-bottom: 1.5rem; /* JUST FOR STYLING PURPOSE */
}

.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}


#username, #password {
    font-weight: bold !important;
    letter-spacing: 1px !important;
    font-size: 1.2rem !important;
}

ul li.agenda-list {
    border-bottom: #eed solid 1px;
}

/* Chairman Page Button Styles - Active vs Hover distinction */

/* Walk button - Active (current agenda) */
.btn-success.walk {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Walk button - Inactive */
.btn-outline-success.walk {
    background-color: transparent !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.btn-outline-success.walk:hover {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    box-shadow: none;
}

/* Quorum button - Active (open) */
.btn-default.quorum-hold {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

/* Quorum button - Inactive */
.btn-outline-danger.quorum {
    background-color: transparent !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-outline-danger.quorum:hover {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    box-shadow: none;
}

/* Vote button - Active (open) */
.btn-outline-default.vote-hold {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
}

/* Vote button - Inactive */
.btn-outline-primary.vote {
    background-color: transparent !important;
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

.btn-outline-primary.vote:hover {
    background-color: #d1ecf1 !important;
    border-color: #17a2b8 !important;
    color: #0c5460 !important;
    box-shadow: none;
}

/* Meeting Form Page Button Styles */

/* Add agenda button (+ บรรจุวาระภายใต้) - Orange outline */
.btn-outline-danger.agenda-add,
.btn-outline-danger.btn-round {
    background-color: transparent !important;
    border-color: #f5593d !important;
    color: #f5593d !important;
    transition: all 0.2s ease;
}

.btn-outline-danger.agenda-add:hover,
.btn-outline-danger.btn-round:hover {
    background-color: #fef0ed !important;
    border-color: #f5593d !important;
    color: #c9302c !important;
    transform: translateY(-1px);
}

/* Edit button (แก้ไข : ยกเลิก : แนบเอกสาร) - Primary */
.btn-primary.btn-round {
    background-color: #51bcda !important;
    border-color: #51bcda !important;
    color: #fff !important;
    transition: all 0.2s ease;
}

.btn-primary.btn-round:hover {
    background-color: #3aa3c1 !important;
    border-color: #3aa3c1 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(81, 188, 218, 0.3);
}

/* Main add button (+ บรรจุระเบียบวาระหลัก) - Solid danger */
.btn-danger.btn-round {
    background-color: #f5593d !important;
    border-color: #f5593d !important;
    color: #fff !important;
    transition: all 0.2s ease;
}

.btn-danger.btn-round:hover {
    background-color: #d9432a !important;
    border-color: #d9432a !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 89, 61, 0.3);
}

/* Cancel button (ยกเลิกระเบียบวาระ) - Outline danger with different style */
.btn-outline-danger.btn-round[href*="delete"],
a.btn-outline-danger.btn-round {
    background-color: transparent !important;
    border: 2px dashed #dc3545 !important;
    color: #dc3545 !important;
}

a.btn-outline-danger.btn-round:hover {
    background-color: #fff5f5 !important;
    border: 2px solid #dc3545 !important;
    color: #a71d2a !important;
}

/* Meeting Card Styles */
.meeting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: visible;
    transition: all 0.3s ease;
}

.meeting-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.meeting-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}

.meeting-number {
    width: 40px;
    height: 40px;
    background: #f5593d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.meeting-info {
    flex: 1;
}

.meeting-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.meeting-when {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.meeting-stats {
    display: flex;
    gap: 15px;
}

.stat-box {
    text-align: center;
    padding: 10px 20px;
    background: #f5593d;
    border-radius: 8px;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.meeting-card-body {
    padding: 15px 20px 20px 20px;
    overflow: visible;
}

.btn-group-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group-container .btn-group {
    margin: 0;
}

.btn-group-container .dropdown-menu {
    min-width: 220px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-group-container .dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-group-container .dropdown-item:hover {
    background: #f5f5f5;
    padding-left: 25px;
}

.btn-group-container .dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: #666;
}

.btn-group-container .dropdown-divider {
    margin: 5px 0;
}

/* Dropdown button styles - Orange Theme */
.btn-group-container .btn-danger {
    background-color: #f5593d !important;
    border-color: #f5593d !important;
    color: #fff !important;
}

.btn-group-container .btn-danger:hover,
.btn-group-container .btn-danger:focus {
    background-color: #d9432a !important;
    border-color: #d9432a !important;
}

.btn-group-container .btn-outline-danger {
    background-color: transparent !important;
    border-color: #f5593d !important;
    color: #f5593d !important;
}

.btn-group-container .btn-outline-danger:hover,
.btn-group-container .btn-outline-danger:focus {
    background-color: #f5593d !important;
    border-color: #f5593d !important;
    color: #fff !important;
}

.btn-group-container .btn-default {
    background-color: #fff !important;
    border-color: #ccc !important;
    color: #666 !important;
}

.btn-group-container .btn-default:hover,
.btn-group-container .btn-default:focus {
    background-color: #f5f5f5 !important;
    border-color: #999 !important;
    color: #333 !important;
}

/* Dropdown menu styling */
.btn-group-container .dropdown-menu {
    border: 1px solid #eee;
    margin-top: 5px;
    z-index: 1050;
    position: absolute;
}

.btn-group-container .dropdown-item:active,
.btn-group-container .dropdown-item.active {
    background-color: #f5593d !important;
    color: #fff !important;
}

.btn-group-container .dropdown-item i {
    color: #f5593d;
}

.btn-group-container .dropdown-item:hover i {
    color: #d9432a;
}
