body {
    font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f8f9fa;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    background-color: #270035;
}

header {
    background-color: #270035;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

.img-header {
    width: 300px;
    height: auto;
}

h2 {
    color: #ffffff;
    text-align: center;
    background-color: #270035;
    margin: 0px;
    padding-top: 20px;
}

nav {
    background-color: #492955;
    padding: 10px 0;
    max-width: 80%;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    display: block;
}

nav ul li a:hover {
    background-color: #6c757d;
}

footer {
    background-color: #270035;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    max-width: 80%;
    margin: 0 auto;
    width: 100%;
    font-weight: bold;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

ul {
    border-radius: 4px;
    padding: 10px;
    list-style-type: none;
}

ul li {
    padding: 8px 0;
}

.flashes {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    list-style-type: none;
}

.flashes li {
    margin-bottom: 5px;
}

.device-list {
    list-style-type: none;
    padding: 0;
    font-weight: bold;
}

.device-list li {
    background-color: #ffffff;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
	padding-bottom: 20px;
    margin-right: 7%;
    margin-left: 7%;
	margin-top: 5px;
    border-radius: 5px;
    border-left: 6px solid #FFE11A;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-list li .actions {
    display: flex;
    gap: 0.7%;
}

.device-form {
    background-color: #ffffff;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-right: 7%;
    margin-left: 7%;
    margin-top: 15px;
    border-radius: 5px;
    border-left: 6px solid #FFE11A;
    font-weight: bold;
}

.device-form .form-group {
    margin-bottom: 1rem;
}

.device-form label {
    display: block;
    margin-bottom: 0.7%;
}

.device-form input[type="text"],
.device-form input[type="password"],
.device-form select {
    width: 100%;
    padding: 0.7%;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

button {
    color: #000000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-yellow {
    background-image: linear-gradient(133.73deg, #FFF963, #FFD800);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-blue {
    background-image: linear-gradient(133.73deg, #BD10E0, #9013FE);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-yellow-login {
    background-image: linear-gradient(133.73deg, #FFF963, #FFD800);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
	margin-top: 20px;
}

.btn-red {
    background-image: linear-gradient(133.73deg, #FF6F61, #FF0000);
    color: #270035;
}

.btn-green {
    background-color: lightgreen;
    color: #270035;
}

.user-list {
    list-style-type: none;
    padding: 0;
    font-weight: bold;
}

.user-list li {
    background-color: #ffffff;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
    margin-right: 7%;
    margin-left: 7%;
	margin-top: 5px;
    border-radius: 5px;
    border-left: 6px solid #6C63FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list li .actions {
    display: flex;
    gap: 0.7%;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.user-form {
    background-color: #ffffff;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-right: 7%;
    margin-left: 7%;
    margin-top: 15px;
    border-radius: 5px;
    border-left: 6px solid #6C63FF;
    font-weight: bold;
}

.user-form .form-group {
    margin-bottom: 1rem;
}

.user-form label {
    display: block;
    margin-bottom: 0.7%;
}

.user-form input[type="text"],
.user-form input[type="password"],
.user-form select {
    width: 100%;
    padding: 0.7%;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.popup-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.user-name {
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
}

.user-name:hover {
    text-decoration: underline;
}

.user-devices {
    margin-top: 1rem;
}

.device-list-user {
    list-style-type: none;
    padding: 0;
}

.device-list-user li {
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.device-list-user .actions {
    display: flex;
    gap: 10px;
}

.admin-container {
    padding: 20px;
    background-color: #270035;
    border-radius: 10px;
    color: #ffffff;
    margin: 0 auto;
    max-width: 80%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.admin-table th, .admin-table td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.admin-table th {
    background-color: #492955;
    color: #ffffff;
}

.admin-table td {
    background-color: #ffffff;
    color: #270035;
}

.admin-table .user-name {
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
}

.admin-table .user-name:hover {
    text-decoration: underline;
}

.admin-devices {
    display: none;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    margin-top: 10px;
}

.admin-device-list {
    list-style-type: none;
    padding: 0;
}

.admin-device-list li {
    border: 1px solid #dddddd;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.admin-device-list .actions {
    display: flex;
    gap: 10px;
}

.admin-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.admin-form .form-group {
    margin-bottom: 1rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
	font-weight: bold;
	color: #270035;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select {
    width: 100%;
    padding: 0.7%;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.7%;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.admin-btn-yellow {
    background-image: linear-gradient(133.73deg, #FFF963, #FFD800);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.admin-btn-red {
    background-image: linear-gradient(133.73deg, #FF6F61, #FF0000);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.admin-btn-blue {
    background-image: linear-gradient(133.73deg, #BD10E0, #9013FE);
    color: #270035;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.responsive-iframe {
    width: 100%;
    height: 1000px; /* Default height for larger screens */
    border: none;
}

.responsive-iframe2 {
    width: 100%;
    height: 750px; /* Default height for larger screens */
    border: none;
	background-color:#270035;
}

.responsive-iframe3 {
    width: 100%;
    height: 500px; /* Default height for larger screens */
    border: none;
	background-color:#270035;
}

.responsive-iframe4 {
    width: 100%;
    height: 1035px; /* Default height for larger screens */
    border: none;
	background-color:#270035;
}

/* Media query for devices with a max width of 768px (tablets, smartphones) */
@media screen and (max-width: 768px) {
    .responsive-iframe {
		width: 765px;
        height: 1000px; /* Adjust height for smaller screens */
    }
}

/* Media query for devices with a max width of 480px (small smartphones) */
@media screen and (max-width: 480px) {
    .responsive-iframe {
		width: 475px;
        height: 1000px; /* Adjust height for very small screens */
    }
}

.flash-messages {
    margin-top: 20px;
}

.flash-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
	margin-top: 20px;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.homediv {
	border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header-logo {
    align-items: center;
}

.header-logo img {
    width: 300px;
    height: auto;
}

.spinner-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	display: none; /* Hidden by default */
}

.spinner {
	border: 16px solid #f3f3f3;
	border-top: 16px solid #3498db;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}