body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #fff;
}
a {
	color: #0fda00
}
.content {
	padding: 0 20px;
	display: block;
}
.logo {
	float:left;
	display: block;
}

/* New menu */

/* Base menu styles */
.main-menu {
    background-color: transparent;
    font-family: sans-serif;
    position: relative;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end; /* Right-align the menu */
    flex-wrap: wrap;
    gap: 10px;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li a {
    display: block;
    padding: 8px 12px; /* Reduced padding */
    color: white;
    text-decoration: none;
	background-color: #44444499;
    border-radius: 10px;
    transition: background 0.3s;
}

.main-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown styles */
.user-menu > a {
    cursor: pointer;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* Align dropdown to the right edge of parent */
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 100%;
  	width: 220px;
    border-radius: 4px;
    overflow: hidden;
}

.user-menu:hover .dropdown {
    display: block;
}

.user-menu .dropdown li a {
    padding: 10px 14px;
    background-color: transparent;
    color: white;
    display: block;
    text-align: left;
}

.user-menu .dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger toggle */
.menu-toggle {
    display: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    color: white;
}

/* Responsive styles */
@media (max-width: 1099px) {
    .main-menu ul {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        /*background-color: rgba(0, 0, 0, 0.6);*/
      	background-color: #444444;
        padding: 10px;
        border-radius: 6px;
    }

    .main-menu ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
        text-align: right;
    }

    .user-menu .dropdown {
        position: static;
        background-color: rgba(0, 0, 0, 0.6);
        margin-top: 5px;
    }

    .user-menu:hover .dropdown {
        display: none;
    }

    .user-menu.open .dropdown {
        display: block;
    }
}

.menu {
    float: left;
    display: block;
    position: absolute;
    right: 20px;
}

/* User menu container */
.user-menu {
    position: relative;
    display: inline-block;
    color: #fff;
    font-weight: bold;
}

/* Dropdown list */
.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #444;
    border: 1px solid #333;
    border-radius: 10px;
    min-width: 180px;
    z-index: 1000;
    padding: 0;
    margin-top: 0px;
    list-style: none;
}

/* Dropdown items */
.user-menu .dropdown li {
    border-bottom: 1px solid #333;
}

.user-menu .dropdown li:last-child {
    border-bottom: none;
}

.user-menu .dropdown a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.user-menu .dropdown a:hover {
    background-color: #333;
    color: #0fda00;
}

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

/* Optional: style the name label */
{
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
}

.user-menu span {
    padding: 10px 0;
}

li.set-none {
    background-color: #333;
    border-radius: 10px;
    align-items: center;
}
.dropdown li {
    background: none;
}
.main-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.main-menu a:hover {
    color: #0fda00;
}

header {
    padding: 20px;
    background-color: #2d2d2d;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
header h1 {
    font-size: 2em;
    margin: 0;
}
header h2 {
    font-weight: normal;
    margin-top: 5px;
}
.deploy {
    font-weight: bold;
    color: #fff;
}
.smart {
    font-weight: normal;
    color: #0fda00;
    text-decoration:underline;
}
.actions {
    position: absolute;
    top: 140px;
    right: 20px;
}
button {
    margin-top: 0px;
    padding: 5px 10px;
    display: block;
    float: right;
    align-items: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    margin-left: 5px;
    margin-top: -3px;
	background: #222;
}
.code-container {
  position: relative;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 3px 20px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  overflow-x: auto;
}

.copy-btnm .generate-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}
div.avail-script {
  width:45%;
  float:left;
  display:block;
}
.tab-btn {
 background-color:#555;
 padding: 10px; 
}
div.select-script {
  width:45%;
  float:right;
  display:block;
}
.copy-btn:hover {
  background-color: #005a9e;
}

.btn-save {
    background: #0fda00;
}
.btn-reset {
    background: linear-gradient(to right, #cc0000, #ff4444);
}
.btn-add {
    background: #0fda00;
}
.btn-up {
    background: linear-gradient(to right, #2962ff, #448aff);
}
.btn-down {
    background: linear-gradient(to right, #2962ff, #448aff);
}
.btn-del {
    background: linear-gradient(to right, #d50000, #ff1744);
}
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Company list style */

.company-card {
  background-color: #2d2d2d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  /*max-width: 600px;*/
  color: #e0e0e0;
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.company-header h2 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.deployment-id {
  font-size: 0.9em;
  color: #aaaaaa;
}

.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.action-link {
  color: #0fda00;
  text-decoration: none;
  font-weight: 500;
}

.action-link:hover {
  text-decoration: underline;
}

.company-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 10px;
}

.user-list, .script-info {
  flex: 1;
  min-width: 300px;
}

.user-list ul {
  list-style: none;
  padding-left: 0;
}

.user-list li {
  margin-bottom: 6px;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

.company-meta {
  font-size: 0.95em;
  color: #cccccc;
}

/* Old Company list style */

.comp_box {
	border: 1px solid #333;
	background-color: #2d2d2d;
	border-radius: 10px;
	padding:10px;
	margin-bottom:20px;
}

.comp_box h3 {
    width: 50%;
    display: block;
    float: left;
}

.available, .selected {
    width: 45%;
}

/* Universal <li> reset */
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('./images/hero.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
	backdrop-filter: blur(3px);
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}
.hero a {
    background-color: #0fda00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}
.section {
    padding: 10px 20px;
    color: #fff;
}
.services-section {
    padding: 10px 20px 40px 20px;
    color: #fff;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}
.card {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    border: 1px solid #444;
}
.card h3 {
    margin-top: 0;
    color: #0fda00;
}

.news-section {
	margin: 10px 20px 40px 20px;
	background-color: #333;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    border: 1px solid #444;
}

.news-section h2 {
	text-decoration: underline;
	margin-top: 0;
}

.block {
    border-bottom: 1px solid #666;
}

p.date {
    text-align: right;
    margin-bottom: -42px;
    color: #666;
}

.custom-wizard {
  display: flex;
  justify-content: center;
  margin: 50px auto;
  font-family: 'Segoe UI', sans-serif;
  max-width: 1000px;
}

.wizard-step {
  position: relative;
  flex: 1;
  background: #e0e0e0;
  color: #333;
  text-align: center;
  padding: 30px 10px;
  font-weight: bold;
  border-right: 0px solid #fff;
  transition: background 0.3s ease;
}

.wizard-step span {
  display: block;
  font-size: 1rem;
}

/* Arrow effect */
.wizard-step::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 20px solid #e0e0e0;
  z-index: 1;
}

.wizard-step:last-child::after {
  display: none;
}

/* Active step */
.wizard-step.active {
  background: #F25022;
  color: #fff;
  border-radius: 10px 0 0 10px;
}

.wizard-step::after {
  border-left-color: #F25022;
}

/* Step two */
.wizard-step.two {
  background: #FFB900;
  color: #fff;
}
.wizard-step.two::after {
  border-left-color: #FFB900;
}

/* Step three */
.wizard-step.three {
  background: #007bff;
  color: #fff;
}

.wizard-step.three::after {
  border-left-color: #007bff;
}

/* Final step */
.wizard-step.final {
  background: #0fda00;
  color: #fff;
  border-radius: 0 10px 10px 0;
}

.wizard-step.final::after {
  border-left-color: #F25022;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2d2d2d;
    color: #ccc;
}

/* This below Code is only for configure2.php */

.split-view {
    display: flex;
    gap: 20px;
/*    margin-top: 20px;*/
	width: 100%;
}

.split-view h2 {
    margin-top: 0;
}

.left-panel, .right-panel {
    flex: 1;
    /*border: 1px solid #ccc;
    padding: 15px;*/
    box-sizing: border-box;
    min-height: 400px;
}

.tabs {
    display: flex;
    gap: 0px;
    margin-bottom: 0px;
	margin-left:5px;
	margin-top:23px;
}

.tab-btn {
    padding: 10px;
    font-size: 14px;
    background-color: #333;
    border: 1px solid #151515;
	border-bottom: 0px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
}

div.tab-btn {
    width: 79px;
    padding: 10px;
    font-size: 14px;
    background-color: #151515;
    border: 1px solid #151515;
	border-bottom: 0px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
	margin-left: 10px;
	margin-top: -3px;
	font-weight: bold;
}

div.tab-btn:hover {
    background: #151515;
    cursor: default;
}

.tab-btn:hover {
    background-color: #444;
}

.tab-btn.active {
    background-color: #151515;
    font-weight: bold;
}

.available-list {
    list-style: none;
    padding-left: 0;
    display: block;
    border: 1px solid #151515;
    padding: 10px;
    margin-top: 0px;
	border-radius: 10px;
	background: #151515;
}

#selected-list {
    list-style: none;
    padding-left: 0;
    display: block;
    border: 1px solid #151515;
    padding: 10px;
    margin-top: 0px;
	border-radius: 10px;
	background: #151515;
}

li.app-item {
    border: 1px solid #444;
    justify-content: space-between;
    align-items: center;
    background: #222;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background 0.2s 
ease;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
}

button.btn-edit {
    background: linear-gradient(to right, #2962ff, #448aff);
}

/* Add script style */

input#script_name {
    padding: 10px;
	color: #FFF;
    background: #151515;
    border-radius: 10px;
	border: 1px solid #666;
    width: 25%;
}

input#product_key, input#admin_username, input#admin_password, input#wifi_ssid, input#wifi_password, input#searchbar, input, select, select#comp-sel {
    padding: 10px;
	color: #FFF;
    background: #151515;
    border-radius: 10px;
	border: 1px solid #666;
    width: 264px;
}

input[type="checkbox"] {
	accent-color: #151515; 
	width: 15px;
    height: 15px;
}

input[type="checkbox"]:not(:checked){
  	opacity:0.5;
}

textarea#script_content {
    padding: 10px;
    color: #FFF;
    background: #151515;
    border-radius: 10px;
	border: 1px solid #666;
    width: 100%;
} 

.user-list {
	width: 49%;
	display: block;
	float: left;
}

.scripts {
	width: 49%;
	display: block;
	float: right;
}

/* Dashboard style */

button.copy-btn {
    margin-top: -34px;
}

/* Admin_Dasboard code */

.company-flex {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
}

.user-list, .script-info {
  flex: 1;
}

.user-list ul {
  padding-left: 20px;
}

.script-info {
  text-align: left;
}

.chart-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chart-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.chart-right {
    flex: 1;
    min-width: 300px;
    position: relative;
    aspect-ratio: 1 / 1;
}

.chart-right canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.chart-block canvas {
    width: 100% !important;
    height: auto !important;
}

/* Totp style */

#totp_code {
	padding: 10px;
    color: #FFF;
    background: #151515;
    border-radius: 10px;
	border: 1px solid #666;
}
.enable-qr {
	text-align: center; 
}

/* Profile page styles */

.profile-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-left, .profile-right {
    flex: 1 1 45%;
    min-width: 300px;
}

.profile-right li {
    background-color: #2d2d2d;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

/* Table style */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
  	margin-bottom: 30px;
}

thead {
    background-color: #444;
    color: #fff;
}

thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    background: hsla(0, 0%, 20%, 1);
	background: linear-gradient(-90deg, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 13%, 1) 100%);
	background: -moz-linear-gradient(-90deg, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 13%, 1) 100%);
	background: -webkit-linear-gradient(-90deg, hsla(0, 0%, 20%, 1) 0%, hsla(0, 0%, 13%, 1) 100%);
	filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#333333", endColorstr="#222222", GradientType=1 );
}

tbody tr:nth-child(even) {
    background-color: #333;
    color: #f0f0f0;
}

tbody tr:nth-child(odd) {
    background-color: #252525;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background-color: #444;
    cursor: pointer;
}