/* Scientific Calculator Styles */
#calinfoout {
	background-color: #f8f9fa;
	width: 258px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
}

.calinfoinner {
	padding: 8px;
	border: 1px solid #dadce0;
	border-radius: 8px;
}

#calinfoout input {
	width: 45px;
	height: 30px;
	margin: 2px;
	background-color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	transition: all 0.2s ease;
	cursor: pointer;
}

#calinfoout input:hover {
	border-color: #1a73e8;
}

#calinfoout input:active {
	background-color: #e8f0fe;
}

#calinfoout #calInfoOutPut {
	width: 242px;
	font-size: 22px;
	padding: 8px;
	cursor: text;
	text-align: right;
	background-color: #e8f0fe;
	color: #202124;
	border: 1px solid #dadce0;
	border-radius: 4px;
	margin-bottom: 8px;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

#calinfoout .calinfonm {
	color: #fff;
	font-weight: 500;
	background-color: #1a73e8;
	border: 1px solid #1a73e8;
	border-radius: 4px;
}

#calinfoout .calinfoop {
	color: #202124;
	font-weight: 500;
	background-color: #f1f3f4;
	border-radius: 4px;
}

#calinfoout .calinfoeq {
	color: #fff;
	font-weight: 500;
	background-color: #ea4335;
	border-radius: 4px;
}

#calinfoout .calinfofunc {
	color: #185290;
	font-weight: 500;
	background-color: #e8f0fe;
	height: 30px;
	border-radius: 4px;
}

/* Scientific Calculator */
#sciout {
	padding: 12px;
	border: 1px solid #dadce0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#sciOutPut {
	font-size: 20px;
	padding: 10px;
	margin: 2px 2px 10px 2px;
	cursor: text;
	text-align: right;
	background-color: #1a73e8;
	border: none;
	border-radius: 4px;
	color: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	font-family: 'Inter', sans-serif;
}

.scifunc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 34px;
	margin: 2px;
	border: none;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #1a73e8;
	background-color: #e8f0fe;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	cursor: pointer;
}

.scifunc:hover {
	background-color: #d2e3fc;
}

.scifunc:active {
	background-color: #1a73e8;
	color: #ffffff;
	box-shadow: none;
}

.scinm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 34px;
	margin: 2px;
	border: none;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #202124;
	background-color: #f1f3f4;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	cursor: pointer;
}

.scinm:hover {
	background-color: #e8eaed;
}

.scinm:active {
	background-color: #dadce0;
	color: #000000;
	box-shadow: none;
}

.sciop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 34px;
	margin: 2px;
	border: none;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #202124;
	background-color: #e8f0fe;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	cursor: pointer;
}

.sciop:hover {
	background-color: #d2e3fc;
}

.sciop:active {
	background-color: #1a73e8;
	color: #ffffff;
	box-shadow: none;
}

.scird {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	margin: 2px;
	border: none;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #5f6368;
	padding: 0 8px;
}

.scieq {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 34px;
	margin: 2px;
	border: none;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	background-color: #1a73e8;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
	cursor: pointer;
}

.scieq:hover {
	background-color: #0d62d1;
}

.scieq:active {
	background-color: #0b57d0;
	color: #ffffff;
	box-shadow: none;
}

#scihistory, #scihistory div {
	font-size: 13px;
	color: #5f6368;
	text-align: right;
	overflow: hidden;
	width: 268px;
	padding: 3px 0;
}

#scihistory span {
	cursor: pointer;
}

#scihistory span:hover {
	color: #1a73e8;
	text-decoration: underline;
}

#sciInPut {
	font-size: 18px;
	color: #202124;
	text-align: right;
	overflow: hidden;
	width: 268px;
	word-wrap: break-word;
	margin-bottom: 5px;
	padding: 5px 0;
	font-family: 'Inter', sans-serif;
}

#sciInPut b {
	color: #9aa0a6;
	font-weight: 500;
}

/* Memory recall button styling */
.scimrcshow {
	background-color: #ea4335 !important;
	color: #ffffff !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
	#calinfoout, #sciout {
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}
	
	#calinfoout #calInfoOutPut, #sciOutPut {
		width: 100%;
		box-sizing: border-box;
	}
	
	#scihistory, #scihistory div, #sciInPut {
		width: 100%;
	}
	
	.scifunc, .scinm, .sciop, .scieq {
		width: 46px;
		height: 40px;
		margin: 1px;
		font-size: 15px;
	}
}
