/* BASE STYLES */
a {
	color: #5E7687;
	text-decoration: none;
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
	text-decoration: underline;
}
        
a:active {
	color: #4b5c68; /* Slightly darker shade for active state */
}

body {
	/*background: url(backgroundImage.jpeg);*/
	background-size: 100% 100%;
	margin: 20px;
	background-color: #FCFCFC;
	/*color: #FFFFFF;*/
}

body.login {
    background-color: #5E7687;
    background: linear-gradient(180deg, #5E7687 33%, #5E7687 45%, #6A8191 55%, #8FA3B0 70%, #B8C4D0 100%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding-top: 50px;
}

body, p, h1, h2, h3, h4, h5, h6, input, button {
  font-family: 'Roboto', Arial, sans-serif;
}

p.roboto-font {
    margin-bottom: 1px; /* Adjust this value to reduce space below the paragraph */
}

/* LAYOUT STYLES */
nav {
	border-bottom: 3px solid #cccccc;
        font-family: Roboto;
	padding: 8px;
	background: linear-gradient(to right, #5E7687 33%, #5E7687 45%, #6A8191 55%, #8FA3B0 70%, #B8C4D0 100%);
    min-width: 1200px;
}

/* UTILITY CLASSES */
.w400 {
	width: 400px
}

.mt100 {
	margin-top: 100px
}

.button-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    width: 100%;
    margin-top: 20px;
}

a.dropa {
	text-decoration: none;
	font-size: 16px;
	font-family: Helvetica;
	color: white;
	padding: 5px;
	font-weight: normal;
}

/* DROPDOWN STYLES */
.dropbtn {
  color: white;
  background-color: white;
  padding: 5px;
  font-size: 16px;
  border: none;
}

.active {
	border-bottom: 2px solid white;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  font: arial;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 20;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	background-color: white;
	transition: 0.1s
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropa {
	background-color: white;
	color: #5E7687;
	transition: 0.3s;
	border-radius: 5px
}

/* TABLE STYLES */
table {
    font-family: 'Roboto', sans-serif;
}

table.existingCampaigns {
	text-align: alignCenter;
	border: 1px solid;
	border-spacing: 0px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	/*z-index: 1;*/
	
}

table.existingCampaigns th {
    /*position: sticky;*/
    top: 0;
    z-index: 10;
    background-color: #5E7687; /* Set the background color */
    color: white; /* Set the text color to white for contrast */
    padding: 10px; /* Optional: Add some padding for spacing */
    text-align: center; /* Center the text */
    border: none; /* Remove border to avoid white lines */
    font-weight: normal; 
}

table.existingCampaigns th,
table.existingCampaigns td {
    font-family: Roboto;
    font-weight: normal; /* Make the text not bold */
}

table.existingCampaigns td {
    height: 3em; /* Fixed height to fit two lines of text, adjust as needed */
    line-height: 1.5em; /* Set a line height to control spacing between lines */
    vertical-align: middle; /* Vertically center the content */
    text-align: center; /* Center the text */
    white-space: normal; /* Allow wrapping of text */
    overflow: visible; /* Hide overflow content */
}

/* Wrapper to enable scrolling for the table */
.table-wrapper {
    overflow-y: auto;
    max-height: 500px; /* Adjust the height as needed */
    z-index: 1;
}

.chart-table canvas {
    width: 100% !important;  /* Ensure the canvas takes up the full width of the td */
    height: 400px !important; /* Set a fixed height for consistency */
}

.chart-table td {
    width: 50%; /* Ensure each td takes up half the table's width */
    padding: 10px; /* Optional: Add some padding for spacing */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/*
table.existingCampaigns tr.even {
    cursor: pointer;
}

table.existingCampaigns tr.odd {
    cursor: pointer;
}
*/
th.login {
	font-size: 32px;
	font-family: Roboto;
}

tr.header {
	background-color: #5E7687;
	color: white;
}

tr.even{
	background-color: #DCDCDC;
	border: 1px solid black;
	cursor: arrow;
}

tr.even:hover {
	background-color: #B8C4D0;
}

tr.odd {
	border: 1px solid black;
	cursor: arrow;
}

tr.odd:hover {
	background-color: #B8C4D0;
}

td form {
    display: inline-block; /* Ensure form elements are inline */
    margin: 0;
    padding: 0;
}

td.sent {
	color:green;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.soft_bounces {
	color:orange;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.hard_bounces {
	color:red;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.pending {
	color:gray;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.rejected {
	color:black;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.queued {
	color:black;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.inbox_placement {
	color:black;
	text-align:center;
	width: 100px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.execute_at {
	color:black;
	text-align:center;
	width: 200px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.description {
	color:black;
	text-align:center;
	width: 200px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

td.action_column {
	width: 200px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

th {
    font-weight: normal; /* Make the text not bold */
}

/* FORM STYLES */
input {
	margin: 10px;
}

label {
	color: orange;
}

.smallArea {
	resize: none;
	height: 100px;
	width: 200px;
	border-radius: 5px;
	margin: 10px;
}

.smallInput {
	border: none;
	border: 1px solid #000000;
	border-radius: 5px;
	margin: 10px;
}

.small-text {
    font-size: 0.8rem; /* Slightly smaller text relative to the root font size */}

.submit-button {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    padding: 12px 24px;
    background-color: #5E7687; /* Button background color */
    color: #fff; /* Text color */
    border: 2px solid #5E7687; /* Border color */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer;
    text-transform: uppercase; /* Uppercase text */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition for hover effect */
}

.submit-button:hover {
    background-color: #fff; /* Hover background color */
    color: #5E7687; /* Hover text color */
    border-color: #5E7687; /* Hover border color */
}

.modal-confirm {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    padding: 12px 24px;
    background-color: #5E7687; /* Button background color */
    color: #fff; /* Text color */
    border: 2px solid #5E7687; /* Border color */
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    text-transform: uppercase; /* Uppercase text */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition for hover effect */
}

.modal-confirm:hover {
    background-color: #fff; /* Hover background color */
    color: #5E7687; /* Hover text color */
    border-color: #5E7687; /* Hover border color */
}

.modal-cancel {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    padding: 12px 24px;
    background-color: #ba4237; /* Button background color */
    color: #fff; /* Text color */
    border: 2px solid #ba4237; /* Border color */
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    text-transform: uppercase; /* Uppercase text */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition for hover effect */
}

.modal-cancel:hover {
    background-color: #fff; /* Hover background color */
    color: #ba4237; /* Hover text color */
    border-color: #ba4237; /* Hover border color */
}


/* CARD STYLES */
.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: fit-content; /* Adjust width to fit content */
  margin-left: auto;
  margin-right: auto;
  max-width: 1150px;
  background-color: white;
  border-radius: 10px;
  position: relative;
  padding: 25px; /* Add padding to the card */
  text-align: center;
  height: auto;
  
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
  padding: 16px 16px;
}

.chart-container {
  position: relative;
  width: 100%;
  min-width: 700px;
  margin: auto;
  height: auto;
  /*padding-bottom: 56.25%;*/
}


.chart-container > canvas {
  /*position: absolute;*/
  top: 0;
  left: 0;
  width: 80vw;
  height: 60vw;
}

.postage-card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 450px; /* Set a fixed width */
  height: 300px; /* Set a fixed height */
  margin: 15px; /* Add margin to create spacing between cards */
  background-color: white;
  border-radius: 10px;
  position: relative;
  padding: 20px;
  display: flex; /* Use Flexbox for layout */
  flex-direction: column; /* Arrange children vertically */
  justify-content: space-between; /* Distribute space evenly */
  align-items: center; /* Center items horizontally */
}

.postage-card-img {
  height: 100px; /* Fixed height for images */
  width: auto; /* Auto width to maintain aspect ratio */
  margin-bottom: 1px; /* Add some space below the image */
}

.postage-card h2 {
  font-size: 1.5em;
  margin: 0;
}

.postage-card p {
  flex: 1; /* Take up remaining space */
  text-align: center; /* Center text */
  margin: 10px 0; /* Adjust margin */
}

.postage-card input {
  width: 80%; /* Adjust width as needed */
  margin-bottom: 10px; /* Add less space below the input */
}

/* ICON LINK STYLING */
.icon-link {
    background-color: transparent;
    border: none;
    margin: 0 10px; /* Add horizontal spacing between icons */
    color: #777;
    text-decoration: none; /* Remove underline */
    position: relative; /* Required for tooltip positioning */
    display: inline-block; /* Ensure icons are displayed next to each other */
    cursor: pointer;
}

.icon-link:hover {
    color: #333;  
}

/* Tooltip styling using the title attribute */
.icon-link[title] {
    position: relative;
    cursor: pointer; /* Change cursor to pointer */
}


.icon-link[title]::before {
    content: attr(title);
    position: absolute;
    bottom: 150%; /* Adjust this value to move the tooltip above the icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none; /* Ensure the tooltip doesn't interfere with hover */
}

.icon-link:hover[title]::before {
    opacity: 1;
    visibility: visible;
}

/* TOOLTIP STYLING */
.tooltip-text {
    visibility: hidden;
    width: auto;
    max-width: 120px;
    background-color: #4A4A4A;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the icon */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.icon-link:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* MISCELLANEOUS STYLES */
.roboto-font {
    font-family: Roboto;
}

/* Change color of Hello, {{user_first_name}} text to white */
.user-info {
    color: white;
}

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

.div-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Centering the logo at the top */
.logo-container {
    max-width: 100%;
    display: flex;
    justify-content: center; /* Centers the logo horizontally */
    align-items: flex-start; /* Centers the logo vertically if the container has height */
    height: auto; /* 25vh Optional: Full viewport height to center vertically */
    padding-top: 0px; /* Adjust as needed to position the logo from the top */
    position: relative;
}

.login img {
    max-width: 100%; /* Ensures the logo scales properly */
    height: auto; /* Maintains the aspect ratio */
}

/* LINK STYLES */
.tableLink:link,
.tableLink:visited,
.tableLink:hover,
.tableLink:active {
	text-decoration: none;
	color: orange;
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    display: inline-block;
    padding: 12px 24px; /* same padding as .submit-button */
    background-color: #5E7687; /* same background color as .submit-button */
    color: white; /* same text color as .submit-button */
    border: 2px solid #5E7687; /* same border as .submit-button */
    border-radius: 25px; /* same border radius as .submit-button */
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase; /* same text transform as .submit-button */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* same transition as .submit-button */
}

.custom-file-label:hover {
    background-color: #fff; /* same hover background color as .submit-button */
    color: #5E7687; /* same hover text color as .submit-button */
    border-color: #5E7687; /* same hover border color as .submit-button */
}

.file-name {
    margin-left: 10px;
    font-family: 'Roboto', Arial, sans-serif;
}
	
/* FOLLOWING LINES ARE UNCOMMENT */
/*background: url(https://images.pexels.com/photos/1421898/pexels-photo-1421898.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260);*/

/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close {
    cursor: pointer;
    float: right;
    font-size: 20px;
    font-weight: bold;
}