@tailwind base;
@tailwind components;
@tailwind utilities;
 
@layer base {
    :root {
        --background: 0 0% 100%;
        --foreground: 240 10% 3.9%;
    
        --muted: 240 4.8% 95.9%;
        --muted-foreground: 240 3.8% 46.1%;
    
        --popover: 0 0% 100%;
        --popover-foreground: 240 10% 3.9%;
    
        --card: 0 0% 100%;
        --card-foreground: 240 10% 3.9%;
    
        --border: 240 5.9% 90%;
        --input: 240 5.9% 90%;
    
        --primary: 240 5.9% 10%;
        --primary-foreground: 0 0% 98%;
    
        --secondary: 240 4.8% 95.9%;
        --secondary-foreground: 240 5.9% 10%;
    
        --accent: 240 4.8% 95.9%;
        --accent-foreground: 240 5.9% 10%;
    
        --destructive: 0 72.2% 50.6%;
        --destructive-foreground: 0 0% 98%;
    
        --ring: 240 10% 3.9%;
    
        --radius: 7px;
    }
}
 
@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

html {
	font: normal 18px / 20px "DM Sans", "Montserrat", "Segoe UI", Arial, Tahoma, Verdana, sans-serif;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    cursor: default;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

body * {
    touch-action: pan-y !important;
}

* {
	box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
}
*::after,
*::before {
	box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
}

/* Custom Scrollbars */
.sb::-webkit-scrollbar {
    width: 0.45em;
    background-color: transparent;
}
.sb::-webkit-scrollbar-thumb {
    background-color: hsl(0 0% 0% / 0.2);
    border-radius: 50px;
}

.bg-gradient {
    background: linear-gradient(180deg, #c9efff, transparent);
}

.header {
    display: flex;
    height: 90px;
    align-items: center;
    padding: 0px 0px;
}
.header.h-sidebar .sidebar-portion {
    width: 20%;
    min-width: 20%;
    display: flex;
    padding: 0px 0px 0px 30px;
    background-color: #e1f4ff;
    position: relative;
    z-index: -1;
}
.header.h-standalone .sidebar-portion {
    display: flex;
    padding: 0px 0px 0px 30px;
    position: relative;
    z-index: -1;
}
.header .center-portion {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .center-portion .ai-icon {
    height: 60px;
    width: 60px;
    background: url("/images/ai_icon.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: -55px;
    position: relative;
}
.header .center-portion input {
    padding: 12px 20px 12px 55px;
    border-radius: 50px;
    background-color: #f2f2f2;
    width: 50%;
    height: 46px;
}

.header .logo {
    width: 140px;
    background-image: url(/images/branding/logo-dark-transparent.png);
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 150px;
}
.header .right {
    text-align: right;
    padding-right: 30px;
    min-width: fit-content;
}
.header .right .user-pane-btn {
    height: 46px;
    width: 46px;
}
.header .right .user-pane-btn svg {
    width: 100%;
    height: 100%;
}
.userpane-points {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 400;
}
.userpane-points svg {
    width: 22px;
    fill: #f1c456;
    margin-right: 5px;
}
.body {
    display: flex;
}
.body .sidebar {
    width: 20%;
    min-width: 20%;
    background-color: #e1f4ff;
}
.body .content {
    width: 100%;
    padding: 20px 30px 100px;
    height: calc(100vh - 90px);
    overflow: auto;
}

.body .sidebar .menu .item {
    display: flex;
    margin: 5px 20px;
    padding: 15px 10px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 18px;
    align-items: center;
    border-radius: 7px;
}
.body .sidebar .menu .item.active {
    background-color: #0000000a;
}
.body .sidebar .menu .item svg {
    margin-right: 12px;
    color: #00000063;
    transition: color 100ms;
}
.body .sidebar .menu .item:hover svg {
    color: #000000;
}
.body .sidebar .menu .item.active svg {
    color: black;
}

.font-display {
    font-family: "DM Serif Display", "Montserrat", "Segoe UI", sans-serif;
}

.body .heading {
    font-family: "DM Serif Display", "Montserrat", "Segoe UI", sans-serif;
    margin: 0 0px 30px;
    font-weight: 400;
    font-size: 2rem;
}

a.link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #65519e;
}
a.link:hover {
    text-decoration: underline;
}
.home .quick-links a.link {
    display: block;
    margin-bottom: 5px;
}

.auth {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.auth .logo {
    height: 80px;
    width: 80px;
    background-image: url("/images/branding/logo-dark-transparent.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
}

.timeline .timeline-item .opposite-block, .timeline .timeline-item .timeline-opposite-content {
    flex: 0 !important;
    margin: 0 !important;
}
.timeline .timeline-dot {
    background-color: #9977e299 !important;
    border: 0 !important;
}
.timeline .timeline-connector {
    background-color: #00000036 !important;
    width: 1px !important;
}

.day-timeline .time {
    font-weight: 600;
    font-size: 0.8rem;
}
.day-timeline .text {
    font-weight: 500;
    font-size: 0.9rem;
    color: #626262;
}
.day-timeline .time svg {
    display: inline-block;
    width: 1rem;
    margin-top: -1px;
    color: #00000070;
    margin-right: 5px;
}

.page-notif {
    color: #000000a1;
}
.page-notif svg {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
    color: inherit;
}
.page-notif h1 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

.body.home .hospital-search input {
    width: 100%;
    padding: 8px 40px;
    border-radius: 50px;
    background-color: #ffffff82;
    text-align: center;
}
.body.home .hospital-search iframe {
    border: 0px;
    border-radius: 10px;
    width: 100%;
}
.body.home .hospital-search .hospital {
    cursor: pointer;
}
.body.home .hospital-search .hospital:hover .h-name {
    text-decoration: underline;
}
.body.home .hospital-search .hospital .icon {
    min-width: 7%;
    width: 7%;
}
.body.home .hospital-search .hospital .icon svg {
    width: 35px;
    height: 35px;
}

.notfound .logo {
    height: 150px;
    width: 150px;
    background: url("/images/branding/logo-dark-transparent.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    margin-top: -75px;
}