

/**********************Base Navy #063970 and gold #d4af37 layout ***************/
body, html {
    height: 100%;
    margin: 0;
    font-family: Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    background: #f8f9fa;
   /* background-color: #fff*/
    
    
}
 
        
body {

  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .3s, color .3s;
}

/*Link with animated underline */
a {
    position: relative;
    color: var(--navy-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;        /* distance from text */
    width: 0;             /* initial hidden */
    height: 2px;          /* line thickness */
    background-color: var(--gold-dark);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--navy-dark);
}

a:hover::after {
    width: 100%;          /* animate line to full width */
}

.bg-gradient-dark {
    background-color: var(--color-navy-primary);
    background-image: linear-gradient(180deg, var(--color-navy-primary) 10%, #1f1f1f 100%);
    background-size: cover;
}


.bg-gradient-dark-secondary {
    background-color: var(--color-navy-primary);
    background-image: linear-gradient(180deg, var(--color-navy-primary) 10%, #262626 100%);
    background-size: cover;
}


.bg-gradient-dark:hover,
.bg-gradient-dark-secondary:hover {
    filter: brightness(1.05);
}



/* Main wrapper */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*margin-top:70px /*push down away from top nav***/
}



/* *************************Navbar********************************* */
.navbar {
    background-color: var(--navy); 
    border-bottom: 1px solid var(--gold-dark);
}


/* Brand */
.navbar .navbar-brand {
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Brand hover */
.navbar .navbar-brand:hover {
   /* color: #d4af37;font-weight: bold;*/
    -webkit-text-stroke: 1px var(--gold); /* Add gold stroke */
    /*color: transparent;*/
}

.navbar-brand {
    color: var(--color-navy-primary); /* Navy */
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
}

/* Optional: add gold underline accent */
.navbar-brand::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 1px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-navy-primary) 0%, var(--color-navy-glow) 60%, var(--color-gold-primary) 100%);
}


/* Nav items */
.navbar-nav .nav-link, .navbar-nav .nav-item  {
    color: var(--color-white);
    text-transform: uppercase;  
}



.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item:hover {
    color: var(--color-gold-primary);
}


/* Buttons */
.navbar .btn-outline-light {
    border-color: #555;
}

.navbar .btn-outline-light:hover {
    background-color: #3a3a3a;
    border-color: var(--color-gold-primary);
}





/* Parent item */
.nav-item { margin-bottom: 2px; }

/* Parent link */
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    color: #d1d1d1;
    border-radius: 6px;
    cursor: pointer;
}
.nav-link:hover { 
    background-color: var(--navy-light-transparent); 
    color: var(--white);
    border: 1px solid var(--gold);
}

/* Arrow */
.nav-link .arrow { transition: transform 0.3s ease; color: var(--gold); }

/* Rotate arrow on open */
.nav-item.open > .nav-link .arrow { transform: rotate(180deg); color: var(--gold); }


/* Active parent */
.nav-item.active > .nav-link {
    background-color: var(--navy-light-transparent);
    border: 1px solid var(--gold);
    color: var(--white);
    font-weight: 600;
}


/* Open submenu */
.nav-item.open > .submenu { display: block; }



/* Transition for arrow */
.nav-link .arrow {
    transition: transform 0.3s ease;
}

/* Rotate arrow when parent is open */
.nav-item.open .nav-link .arrow {
    transform: rotate(180deg);
}

/* Optional: adjust color */
.nav-link .arrow {
    color: #b0b0b0;
}

.nav-item.open .nav-link .arrow {
    color: var(--gold);
}



/********************* Mobile Adjust sidebar nav for offcanvas ********************/
/* Offcanvas sidebar background */
.sidebar-offcanvas .offcanvas-body {
    background: var(--sidebar-bg);
    height: 100%;
    padding-top: .5rem;
    overflow-y: auto;
}

.sidebar-offcanvas .nav-link {
    color: var(--sidebar-text);
}
.sidebar-offcanvas .nav-link:hover {
    background:var(--navy-light-transparent);
}

/* Submenu */
.sidebar-offcanvas .submenu {
    border-left: 2px solid rgba(255,255,255,.12);
    padding-left: 1.5rem;
}
.sidebar-offcanvas .submenu-link {
    color: #b5b5b5;
}
.sidebar-offcanvas .submenu-link.active {
    color: var(--gold);
    font-weight: 600;
}
.sidebar-offcanvas .submenu-link:hover {
    color: var(--white);
}

/* Parent arrow rotation */
.sidebar-offcanvas .nav-link .arrow {
    transition: transform 0.3s ease;
}
.sidebar-offcanvas .nav-item.open .nav-link .arrow {
    transform: rotate(180deg);
    color: var(--gold);
}


/********************************************** Sidebar *****************************************/

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px; /* below navbar */
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: var(--color-navy-primary); /* dark navy */
    color: var(--color-white);
    overflow-y: auto;
    transition: width 0.3s;
   
}

.sidebar.collapsed { width: 80px; }

/* Sidebar base */
.sidebar-nav {
    padding: .5rem;
}

.sidebar {
  background-color: var(--navy);
  color: white;
  min-height: 100vh;
  transition: all .3s;
}
/* Remove default focus outline and background */
.sidebar a:focus,
.sidebar a:active {
  outline: none;          /* remove blue outline */
  box-shadow: none;       /* remove default focus shadow if any */
  background-color: var(--navy-light-transparent); /* keep your hover color */
  color: var(--white);    /* maintain text color */
  border-bottom: 1px solid var(--gold); /* add gold border on focus */
}

.sidebar a {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-top:2px;
  margin-left: 3px;
  margin-right: 3px;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: all .3s;
}

/* Gold hover with glowing animation */
.sidebar a:hover {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #000;

}

@keyframes glow {
  from { box-shadow: 0 0 5px var(--gold); }
  to { box-shadow: 0 0 20px var(--gold); }
}

/* Active link */
.sidebar a.active {
  background-color: var(--gold-dark);
  color: #000;
  font-weight: bold;
 
}

/* Submenu arrow rotation */
.sidebar a .arrow {
  transition: transform .3s;
}
.sidebar a.active .arrow {
  transform: rotate(90deg);
  color: var(--gold);
}

/* Submenu */
.submenu {
    display: none;
    border-radius: 0.1rem;
    margin:0.1rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Submenu */
.submenu {
  display: none;
  flex-direction: column;
}
.submenu.show {
  display: flex;
}

/* Submenu links */
.submenu-link {
    display: flex;
    align-items: center;
    padding: .35rem 0;
    font-size: .9rem;
    color: var(--white);
    text-decoration: none;
    
}

/* Submenu icon */
.submenu-link i { font-size: 1rem; color: #9e9e9e; flex-shrink: 0; }

/* Hover submenu */
.submenu-link:hover { color: var(--gold); text-decoration: none; }

/* Active submenu */
.submenu-link.active {
    color: var(--gold);
    font-weight: 600;
}
.submenu-link.active i { color: var(--gold); }


/* Open submenu */
.nav-item.open > .submenu {
    display: block;
}

/******************************End Submenu****************************************/
/********************************Main content ***********************************/
.main-content {
  flex: 1;
  transition: margin-left .3s;
}

/* Sticky Footer */
footer {
  background-color: var(--navy-dark);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto;
}


/* Main content must grow */
.main-content {
    flex: 1 0 auto;
    margin-top: 56px;        /* navbar height */
    margin-left: 250px;      /* sidebar width */
    padding: 20px;
}


.main-content.collapsed { margin-left: 80px; }


/* Footer */
footer {
    flex-shrink: 0;
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid var(--navy);
    font-size: 0.9rem;
}

/* Footer links */
footer a {
    color: var(--white);
    margin: 0 6px;
    text-decoration: none;
}

/* Link with animated underline */
footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;        /* distance from text */
    width: 0;             /* initial hidden */
    height: 2px;          /* line thickness */
    background-color: var(--gold);
    transition: width 0.3s ease;
}

footer a:hover {
      color: var(--white);
}
footer a:hover::after {
    width: 100%;          /* animate line to full width */
}




/*****************************************Breadcrumb container ***************************/
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Breadcrumb items as pills */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
   /* background: #f1f3f5; *//* light gray */
    background-color: var(--navy);
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

/* Clickable links */
.breadcrumb-item a {
    color: var(--white); /* Bootstrap primary */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    text-decoration: none;
    color: var(--gold-dark);
    animation: shake 0.3s ease-in-out;
    cursor: pointer;
}

/* Active breadcrumb (current page) */
.breadcrumb-item.active {
    background: var(--gold-dark); /* primary color */
    color: var(--white);
    font-weight: 500;
}

/* Icon spacing */
.breadcrumb-item i.bi {
    margin-right: 0.25rem;
}

.page-title {
    margin-top: 3rem;    /* space above the title */
    margin-bottom: 1.5rem; /* optional space below */
    font-size: 1.5rem;    /* adjust title size */
    font-weight: 600;
}

/************************Dark mode toggle button ************************************/
#darkModeToggle {
  cursor: pointer;
  margin-right: 15px;
  color: var(--gold);
  font-size: 1.2rem;
  border:1px solid var(--gold);
  padding: 5px;
  border-radius: 5px;
}
#darkModeToggle:hover {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}


/*********************end of dark mode toggle button styles ************************************/

/********** Additional styles for dashboard and custom buttons are in their respective CSS files **********/
/* Mobile */
@media (max-width: 768px) {
    .dashboard-header {
        font-size: 14px;
    }
    .dashboard-subheader {
        font-size: 12px;
    }
}

/* Dashboard card styles */
.dashboard-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dashboard-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative; /* required for gradient underline */
    border-bottom: none; /* remove solid border */
}

/* Gradient Accent Line */
.dashboard-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--navy),
        var(--gold-dark)
    );
}

/* Subheaders for sections */
.dashboard-subheader {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: flex;
    text-transform: uppercase;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    position: relative;
    letter-spacing: 0.3px;
}

/* Gradient border */
.dashboard-subheader::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--navy-rgb), 0.4) 20%,
        var(--navy) 50%,
        rgba(var(--navy-rgb), 0.4) 80%,
        transparent 100%
    );
}

.dashboard-description{
    font-size:14px;
    color:#6c757d;
    background:#f8f9fa;
    padding:10px 15px;
    border-left:4px solid #0d6efd;
    border-radius:5px;
}
/** * Scrollable panel styles
 * Used for any card body that needs to be scrollable
 */
.card-body {
    padding: 0.5rem 1rem;
}

.card-body::-webkit-scrollbar {
    width: 6px;
}

.card-body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
}
/* Card styling */
.card {
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;    /* 20px */
    font-weight: 600;      /* semi-bold */
    color: var(--dark-grey);        /* dark grey / easy on eyes */
    

}

.card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-body p strong {
    color: #343a40;
    font-weight: 600;
}

.card-body p span {
    color: #495057;
}

/* Summary Cards */
.summary-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.willimano-total-revenue{
    color: var(--green);
    border-left:4px solid var(--navy-dark); /* Colored side border */
}

.willimano-total-month{
    color: var(--navy);
    border-left:4px solid var(--gold); /* Colored side border */
}

.willimano-total-pending{
    color: var(--gold);
    border-left:4px solid var(--red); /* Colored side border */
}

.summary-card h6 {
 color:var(--navy-dark);
    font-weight: 500;
}
 
.summary-card h3 {
    font-weight: 700;
}

.summary-card.income h3 { color: var(--green); }
.summary-card.expense h3 { color: var(--red); }
.summary-card.profit h3 { color: var(--gold); }


/****end of dashboard card styles ****/


/* Shake animation */
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* Responsive for mobile */
@media (max-width: 576px) {
    .breadcrumb {
        gap: 0.15rem;
        font-size: 0.8rem;
    }
    .breadcrumb-item {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    .page-title {
    margin-top: 1rem;    /* space above the title */
    
     }
}



/* Mobile adjustments */
@media (max-width: 768px) {
    .sidebar {
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1040;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .page-title {
    margin-top: 1rem;    /* space above the title */
    
     }
}
