@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/*:root {
	--border-radius: 10px;
	--box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05); 
	--background: white;
    --surface: white;
    --surfaceVarient: #F5F0EB;
    --primary: #a52a2a;
	--primaryVarient: #7c2020;
    --onPrimary: #EEE;
    --outline: #999;
    --onSurface: #222;
    --onSurfaceVarient: #666;

	--green-bg: #e6f4ea;
	--green: mediumseagreen;

	--red-bg: #fdecea;
	--red: tomato;

	--yellow-bg: #fff6da;
	--yellow: yellow;

	--blue-bg: aliceblue;
	--blue: royalblue;

	--font-family: 'Google Sans';
	--font-display: 'Space Grotesk';
	--width-card: 300px;
	--width-card-medium: 520px;
	--width-card-wide: 800px;
	--width-content: 1100px;
}*/

:root{
    --primary: brown;
    --primaryVarient: #7C2020;
    --onPrimary: #EEE;

    --outline: #bbb;

    --surface: #fff;
    --surfaceVarient: #F5F0EB;

    --onSurface: #222;
    --onSurfaceVarient: #666;

    --red-bg: #FDECEC;
    --red: crimson;
    
    --blue-bg: #EAF3FF;
    --blue: royalblue;

    --green-bg: #EAF9EE;
    --green: mediumseagreen;

	--yellow-bg: #FFF8DB;
	--yellow: goldenrod;

    --border-radius: 10px;

    --width-card: 300px;
	--width-card-medium: 520px;
	--width-card-wide: 1000px;

    --font-display: 'Space Grotesk';
    --font-body: 'Google Sans';
    --font-small: 'Google Sans';

}

*{
	margin: 0;
	bottom: 0;
	text-decoration: none;
	list-style: none;
	box-sizing: border-box;
	font-family: var(--font-body);
}

body {
	background: var(--surface);
	color: var(--onSurface);
	margin: 0;
	overflow-x: hidden;
	padding: 0;
	min-height: 100vh;
}

h1, h2, h3{
	font-family: "Space Grotesk";
}

a{
	color: var(--onSurface);
}

header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background-color: var(--primary);
	position: sticky;
	z-index: 10;
	top: 0;
}
header *{
	color: var(--onPrimary);
}
header .brand{
	display: flex;
	gap: 8px;
	align-items: center;
}
header .brand span{
	display: flex;
	gap: 3px;
	flex-direction: column;
}
header img{
	border-radius: 8px;
	border: 1px solid var(--outline);
}
header h2{
	font-size: 18px;
}
header small{
	font-size: 10px;
	color: var(--onPrimary);
}
header div a{
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: var(--border-radius);
}
header svg{
	width: 24px;
	height: 24px;
	margin: 4px;
}
header div a:hover{
	background-color: var(--surfaceVarient);
}
.profile-btn {
    font-weight: 900;
    color: var(--primaryVarient);
    background: linear-gradient(135deg, var(--surface), var(--surfaceVarient));
    border: 1px solid var(--outline);
    box-shadow: var(--box-shadow);
}

.filled-btn,
.outlined-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

small{
	color: var(--onSurfaceVarient);
}

/* Filled */
.filled-btn {
  background: var(--primary);
  color: var(--onPrimary);
}

.filled-btn:hover {
  background: var(--primaryVarient);
  color: var(--onPrimary);
}

/* Outlined */
.outlined-btn {
  background: transparent;
  color: var(--primary);
}

.outlined-btn:hover {
  background: var(--primary);
  color: var(--onPrimary);
}

input, textarea{
	padding: 12px 24px;
	border-radius: var(--border-radius);
	font-size: 16px;
	background: var(--surface);
	border: 1px solid var(--outline);
	color: inherit;
}

input:focus, textarea:focus{
	outline: 1px solid var(--primary);
	border: 1px solid var(--primary);
}

input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--outline);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--onSurface);
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--transition);
  flex-shrink: 0;
}

input[type="checkbox"]:hover {
  border-color: var(--outline);
  background: var(--surfaceVarient);
}

input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primaryVarient);
}

input[type="checkbox"]:checked:hover {
  background: var(--primary);
  border-color: var(--primaryVarient);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

input[type="checkbox"]:focus {
  outline: none;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 36px 12px 12px;
  border: 2px solid var(--outline);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: all 0.2s var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}


select:hover {
  border-color: var(--outline);
  background-color: var(--surfaceVarient);
}

select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
}

select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

select option {
  background: white;
  color: inherit;
}

main{
	margin: 40px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.breadcrumb{
	display: flex;
	gap: 4px;
	align-items: center;
	flex-wrap: wrap;
	color: var(--onSurfaceVarient);
}

.breadcrumb a:hover small{
	color: var(--primary);
}

main h2 span{
	color: var(--primary);
	font-family: "Space Grotesk";
}

main small{
	color: var(--onSurfaceVarient);
}

@media (max-width: 600px) {
	main{
		margin: 40px 16px;
	}
	header{
		padding: 12px 16px;
	}
}

table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surfaceVarient);
    border-radius: var(--border-radius);
    outline: 1px solid var(--outline);
	overflow: hidden;
    outline-offset: -1px;
}
th,
td {
	padding: 16px 24px;
	border-bottom: 1px solid var(--outline);
	text-align: left;
}
td {
	padding: 12px 24px;
}
th {
	background: var(--primary);
	color: var(--onPrimary);
}
.table-responsive{
	margin: 24px;
	width: calc(100% - 48px);
	overflow: auto;
	border-radius: var(--border-radius);
}
@media (max-width: 600px) {
	.table-responsive{
		width: 100%;
		margin: 16px 0;
		border-radius: 0;
	}
	table{
		border-radius: 0;
	}
}

input[type="file"] {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--border-radius);
  font-size: 14px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 6px 14px;
  margin-right: 10px;
  background: var(--surfaceVarient);
  color: var(--onSurface);
  font-family: 'Google Sans';
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}