body {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    /*font-size: 16px;*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Base styles for the button */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
  }
  
  /* Styles for when the button is hovered */
  .button:hover {
    background-color: #ddd;
  }
  
  /* Styles for when the button is active (clicked) */
  .button:active {
    background-color: #aaa;
  }


  
body {
    background-color: #435165;
    margin: 0;
}

footer{
    display: block;
    clear: both;
    text-align: center;
}
table{ width: 100%;}
table th{ text-align: left; padding: 5px}
.msg{
    font-size: 12px;
    padding-left:10px;
    padding-top:10px;
}
.error{
    color:red;
}
.success{
    color:green;
}
    
.commonForm {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
}

.register {
    width: 500px;
}
.commonForm h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.commonForm form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 30px;
}
.commonForm form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}
.commonForm form input:not([type=radio]) {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.register form input{
    width: 400px !important;
}

#adress-group{
    display: flex;
    margin-bottom: 17px;
}
div#adress-group input {
    width: 127px!important;
    margin: 5px;
}
/*.register form #city, .register form #state, .register form #zip{
    width: 100px !important;
    float:left;
    margin-right:25px;
}*/
.addDriver{
     box-shadow: none;
     width: 500px;
}
.addDriver form input:not([type=radio]){
    width: 450px;
}
.addDriver form label.no-bg{
    background-color: #ffffff;
    color:#4a536e;
    display: inline;   
}
.flex-break{
    flex-grow: 1;
    width: 100%;
    margin: 5px 0;
}

.commonForm form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin:20px 0 -20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.commonForm form input[type="submit"]:hover {
  background-color: #2868c7;
    transition: background-color 0.2s;
}


.bottom-links {
    
    padding: 10px;
}
.bottom-links a{
    
    text-decoration: none;
    font-size: 12px;
    
}
.section-title{
    text-align: center;
    margin:10px 0;
    font-size: 16px;
}

/* portal view*/


.navtop {
	background-color: #2f3947;
	height: 60px;
	width: 100%;
	border: 0;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 1000px;
	height: 100%;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 24px;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a.link {
	padding: 0 20px;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
body.loggedin {
	background-color: #f3f4f7;
}
.content {
	width: 1000px;
	margin: 0 auto;
}

no-bg
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div, .content section {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

.section-nav{
    display: flex;
    margin: 0 auto;
    height: 100%;
}
.section-nav h2{
    flex: 1;
    padding: 0;
    margin: 0;
    border:none;
 }
.section-nav a {
    /*padding: 0 20px;*/
    text-decoration: none;
    color: #4a536e;
    font-weight: bold;
}
/*section nave bar*/
/* CSS for the left and right columns */
#sectionNavbar{
    display: flex;
} 
#sectionNavbar .left {
    padding: 10px;
  box-sizing: border-box;
  }
  
  #sectionNavbar .right {
    flex: 1; /* This makes the right column take up the remaining space */
    padding: 10px;
    box-sizing: border-box;
  }
  
 
  


/* pagination */

.pagination{ list-style: none; float: right;}
.pagination > li{ display: inline; margin:2px 5px;}
 /* Pagination Styling */
 .pagination {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.pagination li {
    margin-right: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

@media only screen and (max-width: 100px) {
    .navtop div,  content{
        max-width: 1000px;
    }

}


/*Popup*/

.general-popup {
    display: none;
    position: fixed;
    /*bottom: 20px;*/
    top:20%;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    height: 400px;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#messageContainer {
    height: 300px;
    overflow-y: auto;
}

.message {
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;;
}

.message .date{
    font-size: 10px;
    font-style: italic;

}

.sender {
    background-color: #DCF8C6;
    text-align: left;
}

.receiver {
    background-color: #D6D6D6;
    text-align: right;
}

.input-container {
    margin-top: 10px;
}

.input-container input[type="text"] {
    width: 70%;
    padding: 10px;
    margin-right: 5px;
    border: #f0f0f0;
    margin-top: 10px;
    border-radius: 3px;
}

.input-container button {
    padding: 10px;
    width: 20%;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 40px;
}

/*search form*/
/* Search Form Styling */
form.search {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

form.search label {
    margin-right: 10px;
}

form.search select,
input[type="text"],
form.search button {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form.search select {
    min-width: 120px;
}

form.search input[type="text"] {
    flex: 1;
    margin:0 16px;
}

form.search button {
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

form.search button:hover {
    background-color: #0056b3;
}


/*loader*/
#loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex; /* Change this to flex */
    justify-content: center;
    align-items: center;
  }
  
  .loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* client form */
  
  .client-form {
    display: flex;
    flex-wrap: wrap;
}

.section {
    flex-basis: calc(33.33% - 20px);
    margin: 10px;
}

@media screen and (max-width: 768px) {
    .section {
        flex-basis: 100%;
    }
}

  .client-form label{
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .client-form input, .client-form select {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    }

    .client-form select {
        width: 96%;
        font-size: 16px;
    }