/* Custom theme for Udon Thani Half Marathon */

/* You can override colors, fonts, and layout here */
body {
    /* Example: change background or font */
}

/* Custom Button Styles (Rounded and Pastel) */
.btn {
    border-radius: 25px !important;
    border: 1px solid transparent !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #3498db !important;
    /* Darker pastel blue */
    border-color: #3498db !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
}

.btn-success {
    background-color: #2ecc71 !important;
    /* Darker pastel green */
    border-color: #2ecc71 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
}

.btn-danger {
    background-color: #e74c3c !important;
    /* Darker pastel red */
    border-color: #e74c3c !important;
    color: #fff !important;
}

.btn-danger:hover {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
}

.btn-default {
    background-color: #d7dbdd !important;
    /* Darker pastel gray */
    border-color: #d7dbdd !important;
    color: #555 !important;
}

.btn-default:hover {
    background-color: #bdc3c7 !important;
    border-color: #bdc3c7 !important;
}

/* Custom well style */
.well {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Custom Input Box Styles */
.form-control {
    border-radius: 20px !important;
    box-shadow: none;
}

.form-control:focus {
    border-color: #f26522 !important;
    /* Just make it orange on focus */
    box-shadow: 0 0 5px rgba(242, 101, 34, 0.4) !important;
}

/* Custom Legend Style */
legend {
    border-bottom: 2px dashed #f26522 !important;
    color: #f26522 !important;
    font-weight: 500;
}

/* Style for input group with icon (add-on) */
/* Addon on the left, Input on the right */
.input-group>.form-control:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.input-group>.input-group-addon:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    background-color: #f9f9f9;
}

/* Input on the left, Addon on the right (like datetimepicker) */
.input-group>.form-control:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
}

.input-group>.input-group-addon:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    background-color: #f9f9f9;
}

/* Middle element (3-part group) */
.input-group>.form-control:not(:first-child):not(:last-child) {
    border-radius: 0 !important;
}

/* Button on the right of input group */
.input-group-btn:last-child>.btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

/* Custom Accordion Styles */
.accordionTitle {
    background-color: #0593f7 !important;
    /* ฟ้าคล้าย cover (Twitter Blue / Sky Blue) */
    border-radius: 50px !important;
    /* ขอบมนเป็นแคปซูล */
    margin-bottom: 5px !important;
}

.accordionTitleActive {
    background-color: #0593f7 !important;
    border-radius: 20px 20px 0 0 !important;
    /* ตอนเปิดก็ให้ข้างบนโค้งมนขึ้น */
}

/* Hide accordion underline since we now use a solid background */
.accordionTitle:before,
.accordionTitle:after,
.accordionTitleActive:before,
.accordionTitleActive:after {
    display: none !important;
    background: transparent !important;
}

/* Ensure no bullet points or list markers appear at the corners */
.ul-accordion,
.Accitem {
    list-style: none !important;
    list-style-type: none !important;
}

.dark {
    background-color: #0593f7 !important;
    color: #fff !important;
}

/* Custom Table Header Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead tr.dark {
    background-color: transparent !important;
}

.table thead tr.dark th {
    background-color: #0593f7 !important;
    color: #fff !important;
    border-bottom: none !important;
}

.table thead tr.dark th:first-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.table thead tr.dark th:last-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}