/* Base button styles */
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* Pill container for joined buttons */
.button-pill {
    display: flex;
    margin: 20px 0;
}

/* Clear Form button - left side of pill */
.btn-clear {
    background-color: #dc3545;
    color: white;
    border-radius: 25px 0 0 25px; /* Rounded left, flat right */
}

/* Submit Form button - right side of pill */
.btn-submit {
    background-color: #0b3d91;
    color: white;
    border-radius: 0 25px 25px 0; /* Flat left, rounded right */
}

/* Set Rows button - standalone pill */
.btn-pill {
    border-radius: 20px !important;
    padding: 6px 16px;
}

/* Hover states */
.btn-clear:hover {
    background-color: #c82333;
}

.btn-submit:hover {
    background-color: #092c6b;
}

/* Demo patients section */
.demo-patients-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    border-radius: 20px;
    padding: 6px 15px;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: white;
}

/* Collapsible card headers */
.card-header button.btn-link {
    color: inherit;
    border: none;
    background: none;
    text-decoration: none;
}

.card-header button.btn-link:hover,
.card-header button.btn-link:focus {
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

/* Chevron rotation for collapse */
.card-header button[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.card-header button[aria-expanded="false"] .fa-chevron-up {
    transform: rotate(180deg);
}

.card-header .fa {
    transition: transform 0.3s ease;
}

/* Spacing adjustments */
.card {
    margin-bottom: 1rem;
}

/* Responsive button alignment */
@media (max-width: 768px) {
    .button-pill {
        margin: 10px 0;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline .form-control,
    .form-inline .btn {
        margin: 5px 0;
    }
}