:root {
    --primary-color: #58A6FF;
    --secondary-color: #3FB950;
    --bg-color: #0D1117;
    --surface-color: #161B22;
    --surface-hover: #21262D;
    --text-color: #C9D1D9;
    --text-muted: #8B949E;
    --border-color: #30363D;
    --link-color: #58A6FF;
    --danger-color: #F85149;
    --warning-color: #D29922;
    --info-color: #58A6FF;
    --focus-ring: #1F6FEB;
    --font-main: 'Google Sans', sans-serif;
    --font-alt: 'Bebas Neue', sans-serif;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
}
input,button,select,textarea {
    font-family: inherit;
    font-size: inherit;
}
.app-title {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.app-title > span {
    font-weight: 900;
}

.loading, .loadings {
    display: none;
}

.btn {
	display: inline-flex;
    gap: 0.5rem;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.btn-primary {
	color: #0D1117;
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: var(--link-color);
	box-shadow: 0 6px 16px rgba(88, 166, 255, 0.35);
}

.btn-primary:active {
	transform: translateY(1px);
}

.btn-cancel {
    color: var(--text-color);
    background-color: var(--surface-color);
    border-color: var(--border-color);
}

.btn-cancel:hover {
    background-color: var(--surface-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-block {
	width: 100%;
}

nav {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    position: relative;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
}

nav li {
    display: flex;
}

nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--link-color);
}

nav a.pill {
    margin-left: 1rem;
    background-color: var(--secondary-color);
    border-color: var(--border-color);
    color: white;
    border-radius: 8px;
}

nav a.pill:hover,
nav a.pill:focus {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Added: child menu dropdown styling */
nav > ul li {
    position: relative;
}

nav > ul li .child-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

nav .child-menu li {
    width: 100%;
}

nav .child-menu a {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
}

nav .child-menu a:hover,
nav .child-menu a:focus {
    background-color: var(--surface-hover);
    color: var(--link-color);
}

nav > ul li:hover > .child-menu,
nav > ul li:focus-within > .child-menu {
    display: block;
}

/* Added: indicator for items with children */
nav a.has-child::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-wrapper {
    max-width: 900px;
    margin: 1rem auto;
    padding: 0 1rem;
    position: relative;
}

.page-title {
    font-size: 2rem;
    font-weight: 500;
    margin: 2rem 0 1.5rem;
}

.data-table {
    width: 100%;
    position: relative;
}

.data-table .table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.data-table .table-actions .quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-color);
    color: #0D1117;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.data-table .table-actions .quick-btn:hover {
    background-color: var(--link-color);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table table thead {
    background-color: var(--surface-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table table th,
.data-table table td {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-color);
}

.data-table table td.center {
    text-align: center;
}

.data-table table td.actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.data-table table td.actions > a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.1rem 0.5rem;
    border: solid 1px var(--border-color);
}

.data-table table td.actions > a:hover {
    background-color: var(--border-color);
    border: solid 1px var(--text-color);
}

.data-table table tbody tr:hover {
    background-color: var(--surface-hover);
}

.data-form {
    position: relative;
    border: dashed 2px var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.data-form > form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-form > form .form-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.data-form > form .form-group > label {
    width: 150px;
    font-weight: 500;
    flex-grow: 0;
    flex-shrink: 0;
}

.data-form > form .form-group > input,
.data-form > form .form-group > select {
    flex-grow: 1;
    flex-shrink: 1;
    heigh: 40px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--surface-color);
    color: var(--text-color);
}

.data-form > form .form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.modal .modal-content {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
}

.modal .modal-content .close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    font-size: 3rem;
    text-decoration: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal .modal-content .close:hover {
    color: red;
}

.modal .modal-content .modal-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}