/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
@import "components/buttons.css";
@import "components/side_table.css";
@import "components/table.css";
@import "components/containers.css";
@import "components/modals.css";
@import "components/feedback.css";
@import "components/file_drop_area.css";



/*===== VARIABLES CSS =====*/
:root {
    --color-primary: #09093d;
    --color-secondary: #048eff;
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-danger: #ff0016;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-info-dark: #a47b00;
    --color-info-light: #cff4fc;
    --color-white: #fff;
    --color-black: #000;
    --color-primary-variant: #0018a7;
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;

    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;

    --card-padding: 1.8rem;
    --padding-1: 1.2rem;
    --box-shadow: 0 0.2rem 0.5rem var(--color-dark-variant);


    --modal-background-color: rgba(10, 25, 47, 0.94);
    --text-color: #64ffda;
    --accent-color: #ffc20c;
    --error-color: #ff4757;
    --success-color: #2ecc71;

    --primary-glow: rgb(0, 195, 255);
    --secondary-glow: rgb(0, 89, 255);
    --bg-dark: #0a0a1f;
    --neon-glow: 0 0 10px #64ffda, 0 0 20px #64ffda, 0 0 30px #64ffda;
    --transition-speed: 0.3s;


}

/*===== BASE =====*/
* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    appearance: none;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

/* html */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

/* body */
body {
    /*width: 100vw;*/
    height: 100vh;
    font-size: 0.88rem;
    background: var(--color-background);
    background-size: cover;
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    justify-content: center;
    user-select: none;
    overflow-x: hidden;
    color: var(--color-dark);
}

.container {
    display: grid;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    gap: 1.8rem;
    grid-template-columns: 14rem auto 23rem;
}



.progress-bar {
    height: 5px;
    background: linear-gradient(to right, #34A8FF, #FF69B4); /* sci-fi/techy gradient */
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(52, 168, 255, 0.5); /* neon glow effect */
}



/*===== LAYOUT =====*/


a {
    color: var(--color-dark);
    transition: all 0.3s ease;
}

/*img {*/
/*    display: block;*/
/*    width: 100%;*/
/*    object-fit: cover;*/
/*}*/

h1 {
    font-weight: 800;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 0.87rem;
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-size: 0.77rem;
}

small {
    font-size: 0.75rem;
}

.profile-photo {
    width: 2.8rem;
    height: 2.8rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
}

.text-muted {
    color: var(--color-info-dark);
}

p {
    color: var(--color-dark-variant);
}

b {
    color: var(--color-dark);
}

.primary {
    color: var(--color-primary);
}

.danger {
    color: var(--color-danger);
}

.success {
    color: var(--color-success);
}

.warning {
    color: var(--color-warning);
}



.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.filter-select:hover {
    border-color: var(--color-primary);
    transition: all 0.3s ease;
}



















/*===== ASIDE =====*/
aside {
    height: 100vh;
}

aside .top {
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    /*position: fixed;*/
    /*top: 0;*/
    /*left: 0;*/
    /*z-index: 1000;*/
    /*width: 100%;*/
}

aside .logo {
    display: flex;
    gap: 0.8rem;
}

aside .logo img {
    width: 5rem;
    height: 5rem;
}

aside .logo h2 {
    color: var(--color-primary);
    font-size: 2rem;
    padding-top: 15px;
}

aside .logo h2 span {
    color: var(--color-warning);
}

aside .close {
    display: none;
}

aside .sidebar {
    /* Ensure sidebar is always clearly visible across browsers */
    background-color: var(--color-light); /* Light background for good contrast */
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    height: 86vh;
    position: relative;
    top: 3rem;
}

aside h3 {
    font-weight: 500;
}

aside .sidebar a {
    display: flex;
    color: var(--color-primary);
    margin-left: 2rem;
    gap: 1rem;
    align-items: center;
    position: relative;
    height: 3.7rem;
    transition: all 0.3s ease;
}

aside .sidebar a span {
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

aside .sidebar a:last-child {
    position: absolute;
    bottom: 2rem;
    width: 100%;
}

aside .sidebar a.active {
    background: var(--color-light);
    color: var(--color-info-dark);
    margin-left: 0;
}

aside .sidebar a.active:before {
    content: "";
    width: 6px;
    height: 100%;
    background: var(--color-info-dark);
}

aside .sidebar a.active span {
    color: var(--color-info-dark);
    margin-left: calc(1rem - 3px);
}

aside .sidebar a:hover {
    color: var(--color-info-dark);
}

aside .sidebar a:hover span {
    margin-left: 1rem;
}

aside .sidebar .message-count {
    background: var(--color-danger);
    color: white;
    padding: 2px 10px;
    font-size: 11px;
    border-radius: var(--border-radius-1);
}

aside .sidebar .notification-badge {
    background-color: red; /* Change this to your preferred color */
    color: white;
    border-radius: 50%;
    padding: 0.2em 0.5em;
    position: absolute;
    right: 10px; /* Adjust as needed */
    top: 5px; /* Adjust as needed */
    font-size: 0.8em;
    /*display: none; !* Hide if there are no notifications *!*/
}


/*===== MAIN =====*/


/**
 * Styles for the main element.
 */
main {
    /**
     * Add a margin top of 1.4rem to create some space.
     */
    margin-top: 1.4rem;
    /**
     * Enable smooth scrolling behavior.
     */
    scroll-behavior: smooth;
}

main .date {
    display: inline-block;
    background: var(--color-light);
    border-radius: var(--border-radius-1);
    margin-top: 1rem;
    padding: 0.5rem 1.6rem;
}

main .date input[type="date"] {
    background: transparent;
    color: var(--color-dark);
    font-size: 1.4rem;
    border-radius: var(--border-radius-1);
}

main .insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

main .insights > div {
    background: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

main .insights > div:hover {
    box-shadow: none;
}

main .insights > div span {
    background: var(--color-primary);
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
}

main .insights > div.reports span {
    background: var(--color-warning);
}

main .insights > div.fingerprints span {
    background: var(--color-success);
}

main .insights > div .middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .insights h3 {
    margin: 1rem 0 0.6rem;
    font-size: 1rem;
}

main .insights .progress {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

main .insights svg {
    width: 7rem;
    height: 7rem;
}

main .insights svg circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 14;
    stroke-linecap: round;
    transform: translate(5px, 5px);
    transition: stroke-dashoffset 0.3s ease;
    stroke-dasharray: 226;
    /*stroke-dashoffset: 92;*/
}

main .insights .cases svg circle {
    stroke-dashoffset: 226;
    /*stroke-dasharray: 200;*/
    transition: stroke-dashoffset 0.3s ease;

}

main .insights .reports svg circle {
    stroke-dasharray: 226;
    /*stroke-dashoffset: 226;*/
    transition: stroke-dashoffset 0.3s ease;
}

main .insights .fingerprints svg circle {

    stroke-dasharray: 226;
    /*stroke-dashoffset: 28.5;*/
    transition: stroke-dashoffset 0.3s ease;
}

main .insights .progress .number {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

main .insights small {
    margin-top: 1.6rem;
    display: block;
}

/*==================================RECENT CASES================================*/

main .recent-cases {
    margin-top: 2rem;
    display: grid;
    grid-gap: 1.6rem;
    /*height: 2px;*/
    justify-content: space-between;
    grid-template-columns: 1fr 1fr;
}


main .recent-cases h2 {
    margin-bottom: 0.8rem;
}

main .recent-cases table {
    background: var(--color-white);
    width: 100%;
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

main .recent-cases tbody {
    /*display: block;*/
    /*height: 100px;*/
    overflow-y: auto;
}

main .recent-cases th,
main .recent-cases td {
    /*padding: 0.6rem;*/
    text-align: left; /* Aligns text to the left */
    font-size: 12px;
    margin: 2rem;
    white-space: nowrap; /* Prevents text from wrapping to a new line */

}

main .recent-cases table:hover {
    box-shadow: none;
}

main table tbody td {
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
    color: var(--color-dark-variant);
}

main table tbody tr:last-child td {
    border: none;
}

main .recent-cases a {
    text-align: center;
    display: block;
    margin: 1rem auto;
    color: var(--color-primary);
}

/*==================================END OF RECENT CASES================================*/

/*==================================TOP===============================*/
.right {
    margin-top: 1.4rem;
}

.right .top {
    display: flex;
    justify-content: end;
    gap: 2rem;
}

.right .top button {
    display: none;
}

.right .theme-toggler {
    background: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.6rem;
    width: 4.2rem;
    cursor: pointer;
    border-radius: var(--border-radius-1);
}

.right .theme-toggler span {
    font-size: 1.2rem;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right .theme-toggler span.active {
    background: var(--color-primary);
    color: white;
    border-radius: var(--border-radius-1);
}

.right .top .profile {
    display: flex;
    gap: 2rem;
    text-align: right;
}

/*==================================END OF TOP===============================*/

/*==================================UPDATES===============================*/

.right .recent-updates {
    margin-top: 1rem;
}

.right .recent-updates h2 {
    margin-bottom: 0.8rem;
}

.right .recent-updates .updates {
    background: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.right .recent-updates .updates:hover {
    box-shadow: none;
}

.right .recent-updates .updates .update {
    display: grid;
    grid-template-columns: 2.6rem auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

/*==================================END OF UPDATES===============================*/

/*==================================ANALYTICS===============================*/

.right .analytics {
    margin-top: 2rem;
}

.right .analytics h2 {
    margin-bottom: 0.8rem;
}

.right .analytics .item {
    background: var(--color-white);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding: 1.4rem var(--card-padding);
    border-radius: var(--border-radius-3);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.right .analytics .item:hover {
    box-shadow: none;
}

.right .analytics .item .right {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 0;
    width: 100%;
}

.right .analytics .item .icon {
    background: var(--color-primary);
    padding: 0.6rem;
    border-radius: var(--border-radius-1);
    color: white;
    font-size: 2rem;
    display: flex;
    /*align-items: center;*/
}

.right .analytics .cases .icon {
    background: var(--color-danger);
}

.right .analytics .item .right h3 {
    margin-bottom: 0;
    color: var(--color-dark);
}

.right .analytics .item .right p {
    margin-bottom: 0;
    color: var(--color-dark-variant);
}

.right .analytics .add-case {
    background: transparent;
    border: 2px dashed var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.right .analytics .add-case div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.right .analytics .add-case div h3 {
    font-weight: 600;
}

.right .analytics .add-case:hover {
    background: var(--color-primary);
    color: white;
}







.toolbar {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-1);
}

.toolbar .dashboard-tools, .toolbar .button-container {
    padding: 10px;
}


.records-table-filters-container {
    display: flex;
    gap: 15px;
    border-radius: var(--border-radius-1);
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    box-shadow: var(--box-shadow);
    background-color: var(--color-white);
    padding: var(--card-padding);
}

.records-table-search-container {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    display: flex;
    gap: 10px;
    position: sticky;

}

.records-table-search-container input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}


.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}


.clear-filters {
    padding: 8px 15px;
    background: var(--color-danger);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Add styles for the non-criminal form table */
.information-table-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius-1);
    box-shadow: var(--box-shadow);
    height: 100vh;
    padding: var(--card-padding);
    margin-top: 1rem;
    overflow-y: auto
}


.dashboard-tools {
    display: flex;
    justify-content: space-between; /* Evenly distribute buttons */
    /*flex-direction: column;*/
    /*flex: 1;*/
    /*align-items: stretch; !* Ensure buttons stretch to the same height *!*/
}

.dashboard-tools .btn {
    flex: 1; /* Allows buttons to stretch evenly */
    margin: 0 5px; /* Space between buttons */
    padding: 5px; /* Further reduced padding for smaller height */
    font-size: 12px; /* Font size */
    background-color: transparent; /* Remove background */
    display: flex; /* Make buttons flex containers */
    align-items: center; /* Center icon and text vertically */
    justify-content: center; /* Center icon and text horizontally */
}
