/* =================================================
   GLOBAL LAYOUT
================================================= */
* {
  box-sizing: border-box;
}
#content {
    min-width: 100%;
    min-height: 100%;
    position: relative;
}

.main {
    padding: 1rem 2rem;
}

h1, h2, h3 {
    display: inline;
}

form {
    margin-bottom: -1.3rem;
}

.fixed-table {
    table-layout: fixed;
}

.floating-back-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 1000;
        border-radius: 50px;
        padding: 10px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease;
    }
    .floating-back-btn:hover {
        transform: scale(1.05);
    }

/* =================================================
   NAVBAR
================================================= */

/* Navbar */
.header {
    font-size: 1.75rem;
     font-weight: 550;
    display: inline;
    color: #b62222;
}

.blogo {
    width: 4rem;
    display: inline;
} 

.navbar {
    background-color: #FFFFFF; 
    display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.2); 
  font-family: Arial, sans-serif;
}

.navbar a {
  color: #424242; 
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #B71C1C; 
}

.navbar .btn {
  background-color: #D32F2F; 
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar .btn:hover {
  background-color: #B71C1C;
  color: #FFFFFF;
  transform: scale(1.05); 
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar a {
    margin: 0.5rem 0;
  }

  .navbar div {
    font-size: 1rem;
  }
}




/* =================================================
ICON COMPONENTS
================================================= */

.b-icons {
    width: 12.5rem;
    display: inline;
}

.icon-box {
    margin-top: 2rem;
    background: gainsboro;
}

.icon-box-a {
    margin-bottom: .35rem;
}

.icon-box:hover {
    transition: 0.5s;
    background-color: #b8daff;
}


/* =================================================
BUTTON LINKS
================================================= */

a.btn-admin,
a.btn-d,
a.btn-r {
    background-color:#f8d7da;
    color: black;
    display: inline-block;
    border-radius: .25rem;
    border: 1px solid transparent;
    padding: .5rem 1rem;
}

a.btn-r {
    padding: .5rem 1.65rem;
}

/* =================================================
PAGES
================================================= */
.records {
    font-size: 1.1rem;
    padding: 0.65rem;
}

.donation-page {
    width: 50%;
    margin: auto;
    line-height: 2.2rem;
}

.request-page {
    width: 50%;
    line-height: 2.2rem;
}

.select {
    margin-top: 10rem;
    margin-bottom: 9.45rem;
}

.action-btn {
    font-size: 0.8rem;
    margin: 0.1rem;
}


/* =================================================
   PAGINATION
================================================= */

.pagination {
    display: inline-block;
}

.pagination-page-info {
    padding: .6em;
    padding-left: 0;
    width: 40em;
    margin: .5em 0;
    font-size: 12px;
}

.pagination-page-info b {
    color: black;
    background: #6aa6ed;
    padding: .1em .25em;
    font-size: 150%;
}


/* =================================================
FOOTER
================================================= */

footer {
    width: 100%;
    margin: 2rem auto;
}

footer p {
    display: inline;
}

.blogofot {
    width: 2rem;
    display: inline;
    margin-bottom: 0.5rem;
}


/* =================================================
MEDIA QUERIES
================================================= */
@media (max-width: 880px) {
    #content {font-size: 0.8rem;}
    .action-btn {
        font-size: 0.6rem;
    }
}

/* Tablet small edge case */
@media (max-width: 769px) {
    #content {font-size: .7rem;}
    
    .blogo {
        width: 3rem;
        display: inline;
    }
    .header {
        font-size: 1.5rem;
    }
    
    .db-title { font-size: 1.4rem;}

    .csv-btn, 
    .records{
        white-space: nowrap;
        font-size: 0.7rem;
    }
    .records {padding: 0.6rem;}
    
    /* .action-btn {
        font-size: .55rem;
        } */
    }
    

/* Mobile */
@media (max-width: 541px) {
    
    
    #content {
        font-size: .6rem;
    }
    
    .blogo {
        width: 2.75rem;
        margin-left: -2rem;
    }

    .header {
        font-size: 1.3rem;
    }
    
    .select {
        margin: 5rem auto;
    }
    
    .b-icons {
        width: 9rem;
        display: block;
        margin-bottom: -1rem;
    }
    
    a h2 {
        font-size: 1rem;
    }
    
    a.btn-d,
    a.btn-r {
        padding: 0.5rem 4rem;
    }
    
    .donation-page {
        width: 100%;
        line-height: 1.55rem;
    }
    
    .request-page {
        width: 100%;
        margin: auto;
        line-height: 1.13rem;
    }
    
    .db-title { font-size: 1.1rem;}
    
    footer {
        position: initial;
        bottom: 0;
        font-size: 1.15rem;
    }
}


/* Very small devices */
@media (max-width: 360px) {
    .header {
    font-size: 1.2rem;
  }
}

@media (max-width: 320px) {
    
    #content {
        font-size: 0.32rem;
    }
    
    .blogo {
        width: 2rem;
        margin-left: -1rem;
    }
    
    .header {
        font-size: 1rem;
    }
    
    .donation-page {
        width: 100%;
        line-height: 1rem;
    }

    .select {
        margin: 0;
    }

    .icon-box-a {
        margin-top: .5rem;
        margin-bottom: -.5rem;
    }

    footer {
        position: initial;
        bottom: 0;
        font-size: .75rem;
    }
}


/* Screen height adjustments */

@media (min-height: 812px) and (max-height:825px) {
    .select {
        margin: 11rem auto;
    }
}

@media (min-height: 280px) and (max-height:541px) {

    .blogo {
        width: 7rem;
        margin: 0;
    }

    .header {
        font-size: 1rem;
    }

    .select {
        margin: 2rem auto;
    }

    .donation-page,
    .request-page {
        width: 100%;
        margin: auto;
    }

    .donation-page {
        line-height: 1.55rem;
    }

    .request-page {
        line-height: 1.13rem;
    }
}

@media (min-height: 1024px) and (max-height:1367px) {

    .ui.form {
        font-size: 1.55rem;
    }

    .donation-page,
    .request-page {
        width: 100%;
        margin: auto;
        line-height: 3.55rem;
    }

    footer {
        position: initial;
        bottom: 0;
        font-size: 1.55rem;
    }
}

/* flash messages container*/
#flash-container {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 1050; 
    width: 350px;  
    max-width: 90vw;
}

/* Alert fluid animation*/
.alert {
    margin-bottom: 10px;
    border-left: 5px solid; /* Left border color */
}

.alert-success { border-left-color: #198754; }
.alert-danger { border-left-color: #dc3545; }
.alert-warning { border-left-color: #ffc107; }