body {
        font-family: 'Inter', sans-serif;
}

tr:hover {
	cursor: pointer;
}

#cover {
	position: fixed;
	width: 100vw;
	height:100vh;
	top:0;
	left:0;
	background-color: black;
	opacity: .6;
	z-index: 100;
	display: none;
}

#popupHeader {
	font-size: 1.3em;
    font-weight: bold;
    padding-top: 40px;
    padding-bottom: 40px;
}

#youSure {
	position: fixed;
    width: 300px;
    max-width: 80vw;
    height: 256px;
    max-height: 80vh;
    text-align:center;
    top: 50vh;
    margin-top: -128px;
    left: 50vw;
    margin-left: -150px;
    background-color: white;
    z-index: 200;
    display: none;
    border-style: solid;
    border-width: 2px;
    border-color: blue;
    border-radius: 5px;
}

#delete_div {
	position: relative;
    width: 50%;
    left:50%;
    text-align: right;
    margin-top: -82px;
}

#delete_on_list_header {
	max-width: 200px;
}

.red-asterisk {
	color: darkred;
}

#please_sign {
	display: none;
	color: red;
	font-size: 1.2em;
	position: relative;
	top: -44px;
}

#logo {
	position: relative;
}

#logo_img {
	width: 50%;
	position: relative;
}

#logo_img_reset {
	width: 50%;
	position: relative;
}

#shoulder_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 25px;
}

#hip_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 25px;
}

#back_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 25px;
}

#leg_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 25px;
}

#left_leg_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 25px;
}

#left_leg_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 50px;
}

#right_leg_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 50px;
}

#right_leg_options {
	display: none;
	padding-bottom: 10px;
	padding-left: 50px;
}

.sub_pain_ckbx {
	display: block;
}

#pain_type_other_text {
	display: none;
	padding-bottom: 10px;
}

#massage_type_other_text {
	display:none;
	padding-bottom: 10px;
}

#how_far_along {
	display:none;
}

#tools {
	text-align: right;
	padding-right: 10%;
}

.form-field {
	font-size: .85em;
}

.form-response {
	font-weight:bold;
}

.boldTop {
	border-top-style: double;
}

.container {
    max-width: 800px; /* Increased max-width for larger screens */
    margin: 0 auto;
    padding: 2rem;
    background-color: white; /* Added background color for better contrast */
    border-radius: 0.5rem; /* Added border-radius for a softer look */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Added subtle shadow for depth */
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.25rem; /* Larger heading */
    font-weight: 600; /* Use semibold for the main heading */
    color: #4f46e5; /* Tailwind's indigo-600 */
    margin-bottom: 0.75rem; /* Increased spacing below heading */
    position: relative;
}

.header p {
    font-size: 1rem;
    color: #6b7280; /* Tailwind's gray-500 */
    position: relative;
}

.section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem; /* Added padding at the bottom of each section */
    border-bottom: 1px solid #e5e7eb; /* Tailwind's border-gray-200 */
    position: relative;
}

.section:last-child {
    border-bottom: none; /* Remove border from the last section */
    padding-bottom: 0; /* Removed padding for last section*/
    margin-bottom: 0;
}

.section h2 {
    font-size: 1.5rem; /* Increased heading size */
    font-weight: 600; /* Use semibold for section headings */
    color: #1f2937; /* Tailwind's gray-800 */
    margin-bottom: 1.25rem; /* Increased spacing below heading */
}

.form-group {
    margin-bottom: 1.5rem; /* Increased spacing between form groups */
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600; /* Use semibold for labels */
    color: #374151; /* Tailwind's gray-700 */
    margin-bottom: 0.5rem; /* Increased spacing below labels */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 90%;
    padding: 0.75rem; /* Increased padding */
    border: 1px solid #d1d5db; /* Tailwind's border-gray-300 */
    border-radius: 0.375rem; /* Tailwind's rounded-md */
    font-size: 1rem;
    color: #4b5563; /* Tailwind's gray-600 */
    transition: border-color 0.15s ease-in-out, shadow-sm 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-group textarea {
    min-height: 4rem;
    resize: vertical;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Default to single column */
    gap: 2rem; /* Increased gap */
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on medium screens and up */
    }
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.radio-group input {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    outline: none;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    cursor: pointer;
}

.radio-group input:checked {
    border-color: #4f46e5;
    background-color: #4f46e5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff' stroke='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.radio-group input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-group input {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.125rem; 
    outline: none;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    cursor: pointer;
}

.checkbox-group input:checked {
    border-color: #4f46e5; 
    background-color: #4f46e5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-group input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #4f46e5;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 2rem;
    position: relative;
}

.generic-button {
    padding: 0.75rem;
    background-color: #4f46e5;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 2rem;
    margin-left: 0;
    margin-right: 5px;
    position: relative;
}

#reload_button {
	left: 43%;
}

#reset_signature {
	display: block;
    padding: 0.75rem;
    background-color: #4f46e5; 
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out;
    margin-bottom: 2rem; 
    position: relative;
	margin-left: -145px;
	left: 100%;
	margin-top: 10px;
}

#date {
	width: 40%; 
}

#delete_button {
	background-color: darkred;
}

#confirm_delete {
	background-color: darkred;
}

.submit-button:hover {
    background-color: #4338ca; /* Tailwind's indigo-700 */
    transform: scale(1.02); /* Slight scale on hover */
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); /* Tailwind's indigo-200 with opacity */
}

.signature-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
	padding: .5em;
	margin: .5em;
}

select {
	padding: .5em;
	margin: .5em;
}

#signatureparent {
	color:darkblue;
	background-color:darkgrey;
	/*max-width:600px;*/
	padding:20px;
}

/*This is the div within which the signature canvas is fitted*/
#signature {
	border: 2px dotted black;
	background-color:lightgrey;
	height: 150px;
}

.jSignature {
	height: 100% !important;
}

/* Drawing the 'gripper' for touch-enabled devices */ 
html.touch #content {
	float:left;
	width:92%;
}

html.touch #scrollgrabber {
	float:right;
	width:4%;
	margin-right:2%;
	background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAFCAAAAACh79lDAAAAAXNSR0IArs4c6QAAABJJREFUCB1jmMmQxjCT4T/DfwAPLgOXlrt3IwAAAABJRU5ErkJggg==)
}

html.borderradius #scrollgrabber {
	border-radius: 1em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    cursor: pointer;
}

th.sortable::after {
    content: " ↑↓";
    color: #777;
}

th.sort-asc::after {
    content: " ↑";
    color: #333;
}

th.sort-desc::after {
    content: " ↓";
    color: #333;
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem;
    }
    .header h1{
        font-size: 2rem;
    }
    .grid {
		row-gap: 0;
        column-gap: 1rem;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}