@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css");

:root {
    color-scheme: light dark;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}
@media(prefers-color-scheme: dark) {
	body {
		background-color: #111;
		background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
		background-size: 60px 60px;
		background-position: center center;
	}

	body .card {
		background-color: #222;
		border: 1px solid #333;
	}

	body .card .card-header {
		background-color: #333;
	}

	.card .work-desc {
		color: rgba(255,255,255,0.6)
	}

	.sidebar {
		background-color: #222;
	}

	body .content-name-box {
		background-color: #222;
	}

	body .card .card-header i {
		color: rgba(255,255,255,0.8);
	}

	body .sidebar-section h2 {
		color: rgba(255,255,255,0.7);
	}
}

.sidebar {
    min-width: 250px;
    max-width: 300px;
    /* border-right: 1px solid rgba(0, 0, 0, 0.12); */
    min-height: 100%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.12);
}

.sidebar-pfp {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: calc(100% - 20px);
    margin: 10px;
}

.sidebar-section {
    margin-left: 10px;
}

.sidebar-section p {
    margin: 5px;
}

.sidebar-section h2 {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: inherit;
}

.sidebar-section h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px 0px 0px 5px;
}

.sidebar-education {
    margin-bottom: 10px;
}

.sidebar-education p {
    margin: 0;
}

.content {
    /* padding-left: 5px; */
    /* display: grid; */
    width: 100%;
}

.content-name-box {
    padding-left: 10px;
    background-color: white;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.12); */
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.12), inset 1px 0px 0px 0px rgba(0, 0, 0, 0.12);
}

.content-name-box h1 {
    margin: 0;
}

.content-gridbox {
    display: grid;
    gap: 10px;
    width: calc(100% - 20px);
    margin: 10px;

    grid-template-areas: 
    "about-me empty"
    "experience project";
    grid-template-columns: 50% 1fr;
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    height: fit-content;
}

.card .card-header {
    /* box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.12); */
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    height: 3rem;
    display: flex;
    justify-content: start;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
}

.card .card-header i {
    color: rgba(0, 0, 0, 0.8);
}

.card .card-header p {
    padding-left: 10px;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0;
}

.card .card-item-content {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card .card-item.dropdown-shown .card-item-content {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.12);
}

.card .card-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.card .card-item:last-child {
    border-bottom: none;
}

.card .card-item h3 {
    margin: 0;
}

.card .card-item i {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
}

.card .card-item i::before {
    rotate: 0deg;
    transition: rotate 0.3s ease;
}

.card .card-item.dropdown-shown i::before {
    rotate: 180deg;
}

.card .card-item.dropdown-shown .card-item-dropdown {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    max-height: 300px;
    opacity: 1;
}

.card .card-item .card-item-dropdown {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.7s ease;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.card .card-body {
    padding: 10px;
}

.experience {
    grid-area: experience;
}

.projects {
    grid-area: project;
}
.about-me {
    grid-area: about-me;
}

.flex {
    flex: 1;
}

.status {
    position: relative;
    height: 15px;
    width: 15px;
    border-radius: 50%;
}

.status.danger {
    background-color: red;
}

.status.warning {
    background-color: orange;
}

.status.success {
    background-color: #44d344;
}

.status.pulse::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: "";
    border-radius: 50%;
    aspect-ratio: 1/1;
    animation: pulse 2.5s infinite ease-in-out;
    background-color: rgba(0, 0, 0, 0.22);
        width: 40px;

    z-index: -10;
}

@keyframes pulse {
    0% {
        width: 0px;
        opacity: 1;
    }
    20% {
        width: 0px;
        opacity: 1;
    }
    100% {
        width: 40px;
        opacity: 0;
    }
}

.work-desc {
    color: rgba(0, 0, 0, 0.6);
}

.status-card {
    grid-area: empty;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-item .status-name {
    font-weight: 500;
    flex: 1;
}

.status-item .status-uptime {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.status-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: rgba(0, 0, 0, 0.6);
}

.status-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #dc3545;
}