/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #404852;
    background-color: #efefef;
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
    margin-bottom: 20px;
    font-weight: 300;
    color: #5e636e; /*#404852;*/
}

p {
    margin-bottom: 10px;
}

.container a:link,
.container a:active,
.container a:visited,
.container a:hover {
    color: #5ca3ff;/*#3275b3;/*3672a0;*/
    text-decoration: none;
}

.container a:hover {
    color: #627085;
}

.header {
    position: fixed;
    font-family: 'Funnel Display', sans-serif;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: #3a3f47; 
    z-index: 15500;
    height: 70px;
}

.container {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 600px;
    overflow-x: hidden;
    margin-top: 120px;
    padding-bottom: 120px;
}

.page-header {
	background: #5e636e;
    padding: 15px;
    font-weight: 400;
    color: #fefefe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    width: 100%;

}

.page-header a:link,
.page-header a:active,
.page-header a:visited {
    color: #fffbf1;
}

.page-header a:hover {
    color: #ffdead;
}

ul.regular {
    margin-left: 40px;
}

.footer {
    flex-shrink: 0;
    font-family: 'Funnel Display', sans-serif;
    min-height: 100px;
    background-color: #2a2a2a;
    width: 100%;
    padding: 10px;
    z-index: 5000;
    color: #efefef;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}

.footer-left,
.footer-right,
.footer-center {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 75px;
}

.footer-center {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-right {
    justify-content: flex-end;

}

.footer a {
	text-decoration: none;
	color: #ff9f02;
}

.footer a:hover {
	text-decoration: none;
	color: #ffdead;
}

.hide {
    display: none;
}

.go-left {
    text-align: left;
}

.go-center {
    text-align: center;
}

.go-right {
    text-align: right;
}

/* Global Confirmation Modal */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 600px;
    z-index: 9999;
    display: none;
}

.confirm-overlay.active,
.confirm-modal.active {
    display: block;
}

.confirm-content {
    padding: 30px;
}

.confirm-message {
    font-size: 1.3em;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #333333;
    text-align: center;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Version Release History Modal */
#version-trigger {
    font-style: italic;
    font-size: 0.8em;
    font-weight: 100;
    cursor: pointer;
}

.version-modal-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
}

.version-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.version-entry {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.version-entry-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.version-entry-number {
    font-weight: 600;
    color: #333333;
}

.version-entry-date {
    color: #999999;
}

.version-entry-desc {
    color: #333333;
    line-height: 1.4;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.float-right { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.page-title {
	font-size: 1.5em;
    font-weight: 400;
    display: flex;
    flex-wrap: nowrap;
    flex: 2;
    align-items: center;
}

.page-header-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    flex: 1;
    gap: 6px;
}

.help-text {
    font-size: 0.9em;
    text-align: right;
}

.mt-20 { margin-top: 10px; }
.mb-20 { margin-bottom: 10px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    
    .page-title {
	    font-weight: 400;
	}
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .org-grid,
    .subgroup-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scrollable-container {
    overflow-x: auto;
    width: 100%;
}

.small-depth {
    box-shadow: rgba(0, 0, 0, 0.01) 0px 1px 0px, rgba(0, 0, 0, 0.02) 0px 2px 7px, rgba(0, 0, 0, 0.03) 0px 12px 22px;
}

.medium-depth {
    box-shadow:0 30px 80px rgba(0,0,0,0.14),0 20px 70px rgba(0,0,0,0.12);
}

.large-depth {
    box-shadow:0 40px 100px rgba(0,0,0,0.15),0 25px 80px rgba(0,0,0,0.1);
}
