html,
body {
    height: 100vh;
}

:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
    --navbar-height: 56px;
}

.navbar{
    height: var(--navbar-height);
}

.grhnavbar{
    background-color: #434169; /*#FCC66E;*/
	color: #efeeab;
}

a.navbar-brand:hover{
    color: #efeeab;
	
}

.navbar-nav > li > a:hover{
    color: #efeeab;
	
}

.navbar-nav .nav-link.active{
    color: #b8ddcd;
}

a.navbar-brand{
	color: #b8ddcd; /*#D62829;*/
    width: var(--sidebar-width);
    text-align: center;
    vertical-align: middle;
}

.navbar-nav > li > a{
	color:#b8ddcd; /*#D62829;*/
}

.warningtest {
    background-color: #b6dbe3;
    color: #2f95ab;
}

.warningtest-heading {
    background-color: #b6dbe3;
    color: #2f95ab;
    font-weight: bold;

}

.panel-primary {
    border-color: #010101; 
}

.panel-primary > .panel-heading {
    color: #8cd764;
    background-color: #010101;
    border-color: #010101;
}

.btn-primary {
    color: #8cd764;
    background-color: #010101;
    border-color: #010101;
}

.callToAction{
    --bs-btn-bg: #434169;
    --bs-btn-border-color: #434169;
    --bs-btn-hover-bg: #434169;
    --bs-btn-hover-border-color: #434169;
    --bs-btn-active-bg: #434169;
    --bs-btn-active-border-color: #434169;
    background-color: #434169;
    color: #b8ddcd;
}

.callToAction:hover{
    background-color: #434169;
    color: #b8ddcd;
}

.viewColor{
    color: #8cd764;
}

.deleteColor{
    color: #e206c8;
}

.updateColor{
    color: #0325e3;
}
.tombolaColor {
    color: #FFA4A1;
}

.badge-info {
    background-color: #3a87ad;
}
.badge-success {
    background-color: #468847;
}
.badge-error {
    background-color: #b94a48;
}

p.checkColorRed{
    color: #e11d62;
}
p.checkColorGreen{
    color: #009944;
}

.page-link {
    color: #434169;
}
.active > .page-link{
    color: #b8ddcd;
    background-color: #434169;
    border-color: #434169;
}

.titlecollapse {
    text-decoration: none;
}
.btn-link > .titlecollapse
{
    text-decoration: none;
}


.sidebar {
    position:fixed;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: #a0a3bd;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.logo-text {
    background: linear-gradient(45deg, #6b8cff, #8b9fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}
.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.main-content {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-top: var(--navbar-height);
    transition: all 0.3s ease;
}
.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .profile-info {
    opacity: 0;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.profile-info {
    transition: opacity 0.2s ease;
}