
:root {
    --blue: #0bc2cf;
    --purple: #47178f;
    --white: #fff;
}

body, html {
    height: 100%;
    margin: 0;
    width: 100%;
    background-color: #f6f6f6;
}

.container{
    background: #ffffff;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.container, .container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding: 10px 15px;
    max-width: 1200px !important;
}
@media (min-width: 1200px) {
    .container, .container-fluid {
        width: auto !important; /* Prevent fixed 1170px */
        max-width: 1200px !important;
    }
}

@media (max-width: 768px) {
    .container, .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Navigation Bar */
.navbar {
    margin-bottom: 0;
    background-color: #f8f8f8;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-brand:hover {
    color: #fff;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.navbar-default .navbar-nav > li > a {
    color: #47178f;
    font-weight: 700;
    border-radius: 8px;
    margin: 0 1.5px;
    cursor: pointer;
}

.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover {
    color: #fff;
    background-image: linear-gradient(to bottom, #47178f 0, #0275d8 100%);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
    color: #fff;
    background-image: linear-gradient(to bottom, #0275d8 0, #381272 100%);
}

@media (min-width: 768px) {
    .navbar-nav {
        float: right;
        margin: 0;
    }
}

.logo-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 6px;
    vertical-align: middle;
}

.navbar-header {
    z-index: 1;
}

/* Form Container and Elements */
.kahootbot_title {
    text-align: center;
    color: #47178f;
    margin: 10px auto;
}

.update-info {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.form-container {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19);
    border-radius: 8px;
    padding: 30px 50px;
    margin: 12px;
    background-color: #f8f8f8;
}

.form-container form {
    border-bottom: 1px solid #47178f;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.form-container form:last-child {
    border-bottom: unset;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-container form label {
    font-size: 22px;
    margin: 0;
    color: #47178f;
    font-weight: 700;
}

.form-container form input,
.form-container form select {
    font-size: 22px;
    margin: 0 15px;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Advanced Options Styling */
.advanced-options {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.advanced-toggle {
    background-color: #f1f1f1;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #47178f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.advanced-toggle:hover {
    background-color: #e5e5e5;
}

.advanced-fields {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.help-text {
    display: block;
    font-size: 14px;
    color: #666;
    margin: -10px 15px 15px 15px;
}

.limit-note {
    font-size: 12px;
    color: #ff5722;
    font-weight: normal;
}

.form-container form button {
    font-size: 22px;
    padding: 5px 20px;
    margin-left: 10px;
    background-color: #0275d8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container form button:hover {
    background-color: #47178f;
}

.form-container p {
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
    .form-container form input,
    .form-container form select,
    .form-container form label {
        display: flex;
        align-items: center;
        margin: 10px 0;
    }
    .form-container form button {
        margin-left: 0;
    }
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Status Page Styling */
.status-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.status-card {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    color: white;
}

.status-card h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
}

.status-card .count {
    font-size: 32px;
    font-weight: bold;
    margin-top: 10px;
}

.status-card.total {
    background-color: #47178f;
}

.status-card.connected {
    background-color: #28a745;
}

.status-card.disconnected {
    background-color: #ffc107;
}

.status-card.failed {
    background-color: #dc3545;
}

.status-card.error {
    background-color: #6c757d;
}

.status-details {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-details h2 {
    color: #47178f;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #47178f;
    padding-bottom: 10px;
}

.status-config {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.config-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.config-details p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.status-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #47178f;
}

.status-table tr:hover {
    background-color: #f5f5f5;
}

.status-connected td:nth-child(3) {
    color: #28a745;
    font-weight: bold;
}

.status-disconnected td:nth-child(3) {
    color: #ffc107;
    font-weight: bold;
}

.status-reconnect_failed td:nth-child(3) {
    color: #dc3545;
    font-weight: bold;
}

.status-monitor_error td:nth-child(3) {
    color: #6c757d;
    font-weight: bold;
}

@media (max-width: 768px) {
    .status-summary {
        flex-direction: column;
    }
    
    .status-card {
        width: 100%;
    }
    
    .status-table th,
    .status-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .config-details p {
        min-width: 100%;
    }
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f8f8;
    font-weight: 700;
    color: #47178f;
}

/* Content Section */
.content h2 {
    color: #47178f;
    margin-top: 20px;
}

.content h3 {
    color: #47178f;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content p, .content ol {
    font-size: 18px;
    line-height: 1.6;
}

.content ol li {
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-item {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f7fafc;
    border-left: 4px solid #47178f;
}

.question-container {
    display: flex;
    align-items: center; /* Vertically center question and arrow */
    justify-content: space-between; /* Spread question and arrow across full width */
    cursor: pointer;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
}

.question-container:hover {
    background-color: #e0e0e0;
}

.question {
    margin: 0; /* Remove default h4 margin */
    flex: 1; /* Make question take available space */
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid black;
    vertical-align: middle;
    margin-right: 10px;
}

.faq-item .answer {
    display: none;
    padding: 10px;
}

.faq-item.active .answer {
    display: block;
}

.faq-item.active .arrow-down {
    border-top: none; /* Remove top border */
    border-bottom: 10px solid black; /* Point arrow up when active */
}

/* Footer */
footer {
    background-color: #47178f;
    color: #fff;
    padding: 10px 0;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin-right: 10px;
}

.footer-links li:last-child {
    margin-right: 0;
}

footer a {
    color: #fff !important;
}

.footer-links li a {
    text-decoration: none;
    color: #fff;
}

.footer-links a:hover {
    text-decoration: underline;
}

.btn-success, .contact-label, li, p {
    font-size: 18px;
    line-height: 1.6;
}

.kahoot-join {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    max-height: 350px;
}

/* Button styles */
.button {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    touch-action: manipulation;
    margin: 7px 0;
    display: inline-block;
}

.buttonShadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    filter: brightness(0.7);
    background: var(--blue);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.buttonFront {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    border-radius: 10px;
    padding: 1px 15px;
    min-height: 35px;
    color: var(--white);
    font-size: 20px;
    text-align: center;
    background-color: var(--blue);
}

a.button:hover {
    filter: brightness(110%);
    text-decoration: none;
}

.button:hover .buttonFront {
    transform: translateY(-5.5px);
    transition: transform 200ms cubic-bezier(0.3, 0.7, 0.4, 1.2);
}



/* footer */

.social-share {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
}
.social-share a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}
.social-share a:hover {
    transform: scale(1.1);
    text-decoration: none;
}
.social-share .facebook {
    background-color: #3b5998;
}
.social-share .twitter {
    background-color: #1da1f2;
}
.social-share .linkedin {
    background-color: #0077b5;
}
.social-share .instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}
.social-share .whatsapp {
    background-color: #3ca864;
}


/* Side rail ads */
.ad-left-rail, .ad-right-rail {
    display: none;
    position: fixed;
    top: 47%;
    transform: translateY(-50%);
    z-index: 100;
}

.ad-left-rail {
    left: 20px;
}

.ad-right-rail {
    right: 20px;
}

@media (min-width: 1565px) {
    .ad-left-rail, .ad-right-rail {
        display: block;
    }
}

/* adsterra */

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

.mobile-ad {
    display: none;
}

.desktop-ad {
    display: block;
}

@media (max-width: 767px) {
    .mobile-ad {
        display: block;
    }
    
    .desktop-ad {
        display: none;
    }
}

.ad-container2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ad-box2 {
    width: 468px;
    height: 60px;
  }

  /* Mobile: show only the first ad */
  @media (max-width: 767px) {
    .ad-container2 {
        display: none;
    }
  }



  /* Footer extra links */
.footer-extra {
    margin: 15px 0;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 12px;
}