*{
    -webkit-tap-highlight-color: transparent;
}
button, a{
    -webkit-tap-highlight-color: transparent;
}
* {
    padding: 0;
    margin: 0;
}
/* Header Section */
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 45px;
    box-shadow: inset 0 0 2px 0 black;

    background: #ffffff;
    border: 1px solid black;
}

.header-left {
    margin-top: 2px;
    display: flex;
    align-items: end;
    gap: 2px;
    margin-left: 10px;
}

.header-left h2 {
    font-style: italic;
}

.header-left img {
    width: 30px;
    height: 30px;
    transform: skewX(-12deg);
}

.header-right {
    display: flex;
    justify-content: end;
    gap: 15px;
    margin-right: 9px;
    font-size: 20px;
    margin-top: -15px;
}

.header-right a {
    text-decoration: none;
    color: black;
}

/* course section */

nav {
    height: 30px;
    width: 100%;
    margin-top: 47px;
    position: fixed;
    background: #f8fafc;
    display: flex;
    overflow-x: auto;
    align-items: center;
    gap: 10px;
    border: 2px solid #d1d5db;
    border-top: none;

    scrollbar-width: none;
}

nav a {
    padding: 3px;
    text-decoration: none;
    background: #e5e7eb;
    margin-left: 10px;
    color: black;
    border-radius: 3px;
}


.user-icon {
    width: 25px;
    height: 25px;
    background-color: #dad9e9;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
}

.user-icon::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: black;
    border-radius: 50%;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.user-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 11px;
    background-color: black;
    border-radius: 10px 10px 0 0;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
}

/* sidebar  section */
 
.sidebar button {
    width: 100%;
    text-align: left;
    padding: 12px 12px;
    border-top: none;
    background-color: white;
    font-size: 17px;
    cursor: pointer;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid black;
}

.sidebar.active {
    left: 0;
}

.sidebar li {
    padding: 8px 10px;
    color: black;
    font-weight: bold;
    font-size: 22px;
    list-style-type: none;
    border-bottom: 1px solid black;
}

.sidebar .space button {
    border: none;
}

/* content section */

.sidebar {
  position: fixed;
  /* top: 80; */
  margin-top: 80px;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  font-size: 18px;
  padding-top: 10px;
  box-sizing: border-box;
  background: white;
  color: white;
  border: 1px solid black;
  border-top: none;
  transition: left 0.3s ease;
  z-index: 999;
}

.sidebar.active {
  left: 0;
}  
  main {
  background-color: white;
  width: calc(100%-250px); 
  border: 1px solid black;
  box-sizing: border-box;
  border-top: none;
  margin-left: 250px;
  padding:30px; 
  overflow-x: hidden; 
}
.design {
    background-color: white;
    border: 1px solid black;
    color: black;
    border-radius: 5px;
    padding: 9px;
}


/* calculator section */
#calcToggle{
  position:fixed;
  right:15px;
  bottom:15px;
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  background:#00ffb3;
  font-size:22px;
  cursor:pointer;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
}

#calculator{
      touch-action: none;
  position:fixed;
  left:80px;
  top:120px;
  width:300px;
  min-height:350px;
  padding:12px;
  border-radius:14px;
  background:rgba(0,0,0,.85);
  z-index:999999;
  display:none;             
  flex-direction:column;    
}

#calculator.show{
  display:flex;       
}

#calculator .move-btn{
  background:#00ffb3;
  color:#003;
  padding:3px 10px;
  border-radius:10px;
  cursor:grab;
  font-size:12px;
  width:fit-content;
  margin:auto auto 6px;
  flex-shrink:0;
}

#calculator .resize-handle{
  position:absolute;
  right:6px;
  bottom:6px;
  width:16px;
  height:16px;
  background:#00ffb3;
  cursor:nwse-resize;
  border-radius:4px;
}

#calculator input{
  width:100%;
  height:45px;
  margin-bottom:8px;
  font-size:18px;
  text-align:right;
  padding-right:8px;
  flex-shrink:0;
}

#calculator .calc-buttons{
  flex:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:1fr;
  gap:6px;
}

#calculator .calc-buttons button{
  width:100%;
  height:100%;
  font-size:16px;
  cursor:pointer;
  border:none;
  border-radius:8px;
  background:#111;
  color:#fff;
  transition:0.2s;
}

#calculator .calc-buttons button:hover{
  background:#00ffb3;
  color:#000;
}

/* footer section */
.footer {
    z-index: 9999;
    overflow-y: hidden;
    position: relative;
    background-color: #0f1115;
    color: #fff;
    padding: 60px 10%; 
    width: 100%;   
    box-sizing:border-box;
    display: flex;
    overflow-x: hidden;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer .columns {
    flex: 1 1 200px;
    margin: 10px;
    min-width: 200px;
}

.footer p {
    color: rgb(238, 233, 233);
}

.footer h3 {
    color: #00bfff;
    margin-bottom: 15px;
    font-size: 18px;
}
.footer .colums h2{
    color: #00bfff;

}
.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin: 8px 0;
}

.footer a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer .left p {
    font-weight: normal;
}

.footer a:hover {
    color: #00bfff;
}

.footer-bottom {
    position: absolute;
    background-color: black;
    border-top: 1px solid #fff;
    font-size: 14px;
    color: #ddd;
    padding: 15px;
    margin-top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}
.side-btn{
    display: flex;
    justify-content: flex-end;
}
.side-btn button{
    display: none;
} 