/* style.css */

:root {
  /* Primary colors */
  --color-primary: #2997D9; /* Picton blue */
  --color-primary2: #004777; /* Indigo dye*/

  --color-accent1: #4EBFD9;
  --color-accent2: #6DCCF2;
  --color-accent3: #88D4F2;
  --color-accent4: #91E0F2;

  --color-dark1: #00072D; /*Oxford blue*/
  --color-dark2: #001C55; /*penn blue*/
  --color-dark3: #0A2472; /*Royal blue*/

/*grey scale*/
  --color-white: #ffffff;
  --color-light1: #F2F2F2; /*banner background*/
  --color-light2: #D5EAF2; /*table highlights*/
  --color-light3: #494949; /*Davy's grey*/
  --color-light4: #524948; /*Wenge*/
  --color-light5: #202A25; /*gunmetal*/
  --color-black: #0A0908;


  --color-link: #0074d9;

}


html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Reset default browser styles */
h1 {
    margin: 40px 0 0px 0; /* top right bottom left */

}

p {
    margin: 10px 0 10px 0; /* top right bottom left */

}

/* Set font family and background color */
body {
    font-family: Arial, sans-serif;
    background-color: var(--color-white);
    padding: 0;
}

/* Style headings */
h1 {
    font-size: 35px;
    color: #0A0908;
}

/* Style links */
a {
    color: var(--color-primary2);
    text-decoration: none;
}

a:hover {
    color: var(--color-link);
}


/* Header Styles */
header {
    background-color: var(--color-white);
    padding: 0px 0px;
    border-bottom: 0px solid var(--color-light1);
    height: 50px; /* Set a fixed height for the header */
    display: flex;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo {
    height: 40px;
    width: auto; /* Maintain aspect ratio */
    margin-right: 1px;
}

.website-name {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: var(--color-primary);
    font-weight: bold;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-nav ul li {
    margin-left: 20px;
}

.header-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.header-nav ul li a:hover {
    color: var(--color-link);
}

/* Footer Styles */
footer {
    background-color: var(--color-light1);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}

.footer-links a:hover {
    color: var(--color-link);
}

footer p {
    margin: 0;
    color: var(--color-light3);
    font-size: 14px;
}

/* horizontal bar on the top */
.custom-bar {
    width: 100%; /* Adjust the width */
    height: 4px; /* Adjust the height */
    /* background: linear-gradient(to right, var(--color-primary), var(--color-accent4)); Custom background */
    background: var(--color-light1);
    margin: 20px 0; /* Center the bar with margin */
    border: none; /* Remove any border */
}



.form-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    margin-top: 10px
}

.cta {
    flex: 1;
    color: var(--color-light3);
}

.form-box {
    flex: 2;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px
}

.form-col {
    flex: 1;
    margin-right: 10px;
}

.form-col:last-child {
    margin-right: 0;
}


.form-group label {
    display: block; /*Make label a block element */
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold;
}

/*********************************************/
/*This section is for the input form*/
/*********************************************/
/* Input boxes style */

.form-control-amount, .form-control-target, .form-control-currency {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}



/* Create a simple button style */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--color-primary2), var(--color-primary));
    /*background-color: var(--color-dark3);*/
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background: linear-gradient(to right, var(--color-primary2), var(--color-accent4));
    /*background-color: var(--color-primary2);   */
    color: white;
}

.btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .cta {
        order: -1;
        text-align: center;
    }

    .form-box {
        width: 100%;
    }
}

.form-control-target[readonly] {
    background-color: #f0f0f0; /* Light gray background */
    color: #666; /* Gray text */
    cursor: not-allowed; /* Show not-allowed cursor */
}


/*********************************************/
/*This section is for the results table*/
/*********************************************/
/* Main table styles */
.styled-table {
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 1.0em;
    font-family: sans-serif;
    min-width: 70%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    table-layout: fixed; /* Makes columns respect width */
    width: 100%; /* Use full container width */
}

/* Header styles */
.styled-table thead tr {
    /*background-color: var(--color-primary);*/
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-black);
    text-align: left;
}

/* Cell padding */
.styled-table th,
.styled-table td {
    /* padding: 8px 12px; Reduced side padding */
    padding-top: 8px;
    padding-bottom: 8px;
    word-break: break-word; /* Handle long content */
}

/* Row separation and alternating background */
.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--color-primary);
}

.right-align {
    text-align: right;
    padding-right: 12px;
}

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

.left-align {
    text-align: left;
    padding-left: 12px;
}

.monospace-column {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95em;
}

/* Column width distribution */
.styled-table th:nth-child(1),
.styled-table td:nth-child(1) { /* You Receive */
    width: 15%;
}

.styled-table th:nth-child(2),
.styled-table td:nth-child(2),
.styled-table th:nth-child(3),
.styled-table td:nth-child(3) { /* Payment Methods */
    width: 20%;
}

.styled-table th:nth-child(4),
.styled-table td:nth-child(4),
.styled-table th:nth-child(5),
.styled-table td:nth-child(5) { /* Numbers */
    width: 12.5%;
}

.styled-table th:nth-child(6),
.styled-table td:nth-child(6) { /* Provider */
    width: 20%;
}

/* Active row styles */
.styled-table tbody tr.active-row {
    font-weight: bold;
    background-color: var(--color-light2);
}


.filter-dropdown input[type="checkbox"] {
     margin-right: 5px;
}

.reset-container {
     margin-bottom: 10px;
}

.reset-btn {
            display: block;
            padding: 5px;
            background-color: var(--color-white);
            color: black;
            border: 1px solid var(--color-primary2);
            width: 10%;
            cursor: pointer;
            text-align: center;
            border-radius: 5px;
}

.filter-btn {
            display: block;
            padding: 5px;
            background-color: var(--color-white);
            color: black;
            border: 1px solid var(--color-primary2);
            width: 100%;
            cursor: pointer;
            text-align: center;
            border-radius: 5px;
            margin-top: 10px;
}

.filter-btn:hover, .reset-btn:hover, .filter-icon:hover {
            background-color: var(--color-primary2);  /*#16697A, #BCF4F5 */
            color: white;
}

.filter-icon {
            cursor: pointer;
            margin-left: 5px;
            white-space: nowrap;
}

.filter-dropdown {
            display: none;
            text-align: left;
            position: absolute;
            background-color: white;
            color: black;
            border: 1px solid #ccc;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 100;
            max-height: 200px;
            overflow-y: auto;
            width: 200px;
            font-weight: normal; /* This ensures text isn't bold */
}


/*********************************************/
/* This section is for the rotating logos */
/*********************************************/
/* static/css/styles.css */
#logo-container {
    padding: 10px 0px 10px 0px; /* 20px top, 0 right, 0 bottom, 0 left */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    justify-items: center;  /* Add this line to center items in their grid cells horizontally */
    align-items: center;  /* Add this line to center items in their grid cells vertically */


}

.logo-wrapper { /* Added a wrapper class */
    display: flex; /* Changed to flex for continuous sliding */
    width: 150px;
    height: 150px;
    align-items: center;
    justify-items: center;
    border: 0px solid black;
}

.rotating-logo {
    width: 100%; /* Set the desired width */
    height: auto; /* Set the desired height */
    filter: brightness(0) saturate(100%) invert(37%) sepia(82%) saturate(2%) hue-rotate(12deg) brightness(99%) contrast(90%);/* Standardize color to grey */
    display: inline-block;
    }



/*********************************************/
/* This section is for the feedback modal */
/*********************************************/

/* Feedback modal container */
/* Override .container styles for the modal */
#feedback-modal-container .container {
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    width: auto; /* Allow the modal to take its natural width */
}
/* Feedback modal container */
#feedback-modal-container {
    display: none;  /* Hidden initially */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

/* Feedback modal content */
#feedback-modal {
    background-color: #fefefe;
    margin: 5% auto; /* Center the modal vertically and horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Optional: Limit the maximum width */
}
/* Feedback form group */
.feedback-form-group p {
    margin: 10px 0; /* Add spacing between form fields */
    display: flex;
    flex-direction: column;
}

.feedback-form-group label {
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold;
}

.feedback-form-group input,
.feedback-form-group textarea,
.feedback-form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Make inputs take full width */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.feedback-form-group textarea {
    height: 100px; /* Set a fixed height for textarea */
    resize: vertical; /* Allow vertical resizing */
}

/* Feedback form buttons */
#feedback-form button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#feedback-form button[type="submit"] {
    background-color: var(--color-primary2);
    color: white;
}

#feedback-form button[type="button"] {
    background-color: var(--color-light1);
    color: black;
}

/*********************************************/
/* Custom Thank You Modal Styles */
/*********************************************/

#thank-you-modal {


    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
        /* Visibility */
    display: none; /* Start hidden */
    opacity: 0;
    z-index: 9999;

    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#thank-you-modal.visible {
    display: flex;
    opacity: 1;
}

.thank-you-wrapper {
    width: 100%;
    padding: 20px;
}

.thank-you-content {
    background: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInScale 0.3s ease-out;
}

.thank-you-logo {
    width: 40px;
    height: auto;
    margin-bottom: 20px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}