/* ========================================================================== */
/* Reset some default styles */
/* ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================================================== */
/* Basic styling for body */
/* ========================================================================== */
body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.5;
    margin-bottom: 20px;
    -webkit-font-smoothing: antialiased;
}

li {
    list-style-type: none;
}

/* ========================================================================== */
/* Simplified styling */
/* ========================================================================== */
.hidden {
    display: none;
}

.inactive,
.banned {
    color: red !important;
    text-align: center;
    font-weight: bolder;
}

/* ========================================================================== */
/* Container styles */
/* ========================================================================== */
.container {
	width: 85%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.flex-container {
    display: flex;
    justify-content: space-between;
}

.subcontainer {
    display: inline-block;
    padding: 20px;
}

.one-whole {
    width: 100%;
}

.one-half {
    width: 49%;
}

.one-quarter {
	width: 25%;
}

.three-quarter {
	width: 75%;
}

.one-third {
    width: 33.33%;
}

.two-third {
    width: 66.66%;
}

/* ========================================================================== */
/* Header styles */
/* ========================================================================== */

.hideresponsive {
	display: none;
}

.header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
}

/* Navigation links */
.header a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.header a:hover {
	color: #ff0;
}

/* ========================================================================== */
/* Form styles */
/* ========================================================================== */
form {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Input styles */
input, textarea {
	font-family: "Roboto", Arial, sans-serif;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

input[type="radio"] {
    width: initial;
}


/*Select Dropdown styles */
select {
	font-family: "Roboto", Arial, sans-serif;
	padding: 5px;
	margin-bottom: 5px;
}

/* Button styles */
button {
	font-family: "Roboto", Arial, sans-serif;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover, .return-link a:hover {
    background-color: #555;
}

.unban-button {
    background-color: #32CD32;
}

.ban-button {
    background-color: #D32F2F;
}

.activate-button {
    background-color: green;
}

.deactivate-button {
    background-color: darkred;
}

.delete-button {
    background-color: red;
}

.delete-document-button, .delete-item-button {
    color: red;
    font-weight: bolder;
    margin: 0 1%;
    cursor: pointer;
}

.button-container {
    display: block;
    float: right;
}

.return-link {
    text-align: center;
    margin-top: 20px;
}

.return-link a {
    text-decoration: none;
    background-color: #333;
    color: #fff;
    border: 1px solid black;
    border-radius: 4px;
    display: inline-block;
    padding: 10px;
}

.close-form-button, .close-item-button {
    background-color: #aaa;
}

.edit-item-button {
    padding: 2px;
}

/* PDF Download Form*/
.pdf-download {
    display: inline-block;
	margin-bottom: 10px;
}

.pdf-download button {
    background-color: #04AA6D;
}

.pdf-download button:hover {
    background-color: #555;
}

/*Profile Page Form*/
.subcontainer.two-third form {
    margin-top: 0;
}

/* ========================================================================== */
/* Profile details */
/* ========================================================================== */

.model-profile .button-container {
	float: right;
}

.profile-details {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-details a {
    text-decoration: none;
}

.profile-details a button {
	background-color: #04AA6D;
}

.profile-details p {
    color: #666;
    margin-bottom: 8px;
}

.profile-details img {
	width: auto;
	max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: inline-block;
    vertical-align: middle;
}

.profile-details .subcontainer:first-child {
    width: 25%;
    text-align: center;
}

.profile-details .subcontainer:last-child {
    width: 60%;
    text-align: initial;
    vertical-align: middle;
}

.profile-details .button-container {
    width: 15%;
}

.model_edit_box {
	background: #eee;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 10px;
	margin: 20px 0;
}

/* ========================================================================== */
/* Website details */
/* ========================================================================== */
.website-details, .country-details {
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	float: left;
	width: 100%;
}

.website-details:after, .country-details:after {
    content: '';
    display: block;
    clear: both;
}

.website-details .subcontainer, .country-details .subcontainer {
    padding: 5px 0;
}

.website-details p, .country-details p {
    display: inline-block;
}

.website-details button, .country-details button {
    padding: 5px;
}

/* ========================================================================== */
/* Footer styles */
/* ========================================================================== */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}

/* ========================================================================== */
/* Pagination styles */
/* ========================================================================== */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.current {
    background-color: #333;
    color: #fff;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination span.disabled {
    color: #bbb;
    padding: 8px 16px;
    border: 1px solid #ddd;
    margin: 0 4px;
}

/* ========================================================================== */
/* Images */
/* ========================================================================== */
.profile-image img {
	width: auto;
    height: 200px;
}

.primary-image img,
.secondary-image img {
	width: auto;
    height: 150px;
}


.gallery-image img {
	width: auto;
    height: 100px;
}

.profile-image img:hover,
.primary-image img:hover,
.secondary-image img:hover,
.gallery-image img:hover {
	cursor: pointer;
}

.modal-image {
    width: 600px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    max-width: 600px;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.profile-image, .primary-image, .secondary-image{
    position: relative;
}

.profile-image .delete-item-button, .primary-image .delete-item-button, .secondary-image .delete-item-button{
    position: absolute;
}

/* ========================================================================== */
/* Modal styles */
/* ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content p {
    color: initial;
    margin-bottom: initial;
}

.modal form {
    margin: 0;
    padding: 20px;
}

.modal-content .button-container {
    width: initial;
}

.close {
    color: #aaa;
    align-self: flex-end;
    font-size: 28px;
    font-weight: 600;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* ========================================================================== */
/* Affiliate Email styles */
/* ========================================================================== */
#sendAffiliateEmailModal .modal-content {
    margin: auto;
    align-items: initial;
}

#sendAffiliateEmailModal button {
    float: right;
}



/* ========================================================================== */
/* Accordion styles */
/* ========================================================================== */
.recent-links, .show-more-links .hidden {
    display: block;
}

.recent-links a, .recent-links, .show-more-links .hidden, .hidden a {
    color: #666;
	font-size: 14px;
}

/* ========================================================================== */
/* Auto-suggest styles */
/* ========================================================================== */
#autosuggestResults {
    position: absolute;
    max-width: 350px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
    z-index: 1;
}

#autosuggestResults div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

#autosuggestResults div:last-child {
    border-bottom: none;
}