/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    caret-color: transparent;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

section {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
}

.image-center {
    text-align: center;
}

.image-center img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 2rem;
}

button.btn {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.btn:hover {
    background-color: #2563eb;
}

button.btn a {
    color: white;
    text-decoration: none;
}

.cta {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #e0f2fe;
    border-radius: 12px;
    margin-top: 3rem;
}



/* Header Styling */
header {
    background-color: #1f599b; /* Bright Blue */
    padding: 20px 0;
    color: white;
    min-height: 200px;
    min-width:100%;
    width:"100%";
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    color:white;
}

h1,h2,h3,h4,h5,h6 {
    padding-top:25px;
}
/* Main Content Styling */
main {
    width:100%;
    max-width: 1200px;
    min-width:100%;
    min-height:100vh;
    margin: 20px auto;
    padding: 50px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex: 1;  /* This ensures the main content area takes the available space */
}

p {
    padding-top:10px;
}

ol, ul {
    padding:25px;
}

.btn {
    background-color: #1f599b;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.btn:hover {
    background-color: blue;

}
.btn a {
    color:white;
}

.btn a:hover {
    color:white;
}

main h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

main p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Footer Styling */
footer {
    background-color: #1f599b;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    width: 100%;
}

/* Links Styling */
a {
    text-decoration: none;
    color: #1f599b;
    transition: color 0.3s ease;
}


a:hover {
    color: blue;
}


.logout-btn {
    background-color: white;
    color: #1f599b;
    border: none;
    padding: 8px 14px;
    margin-top:-55px;
    margin-right:25px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    float:right;
}



/* Main Layout */
.main-container {
    display: flex;
    flex-grow: 1;
}

/* Left Panel: Chatbox */
#chat-container {
    width: 40%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#chat-log {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    height: 500px;
}

.message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    max-width: 80%;
}

.user { 
    background-color: #d1e7fd; 
    text-align: right; 
    margin-left: auto; 
}

.bot { 
    background-color: #f1f1f1; 
    text-align: left; 
    margin-right: auto; 
}

#chat-input { 
    width: 100%; 
    height: 100px;
    padding: 8px;
    margin-top:10px;
    margin-bottom: 10px;

}

#send-btn { 
    padding: 8px; 
    cursor: pointer; 
    background: #1f599b; 
    color: white; 
    border: none; 
    border-radius: 10px;
}

/* Right Panel: Live Preview */
#preview-container {
    width: 60%;
    padding: 20px;
}

iframe {
    width: 100%;
    height: 1200px !important;
    border: 1px solid #ddd;
}




.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    position: relative;
}

.chat-box {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;  /* Hide chats by default */
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 15px;
    overflow-y: auto;
    z-index: -1;  /* Hidden by default */
}

.chat-box.active {
    z-index: 10;
    display: block;
}

.chat-header {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.chat-history {
    max-height: 300px;
    overflow-y: scroll;
    margin-bottom: 10px;
}

.message {
    padding: 8px;
    margin: 5px 0;
}

.user-message {
    text-align: right;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.assistant-message {
    text-align: left;
    background-color: #e0f7fa;
    border-radius: 5px;
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

.button-container {
    text-align: center;
    margin-top: 10px;
}

.chat-toggle-buttons button {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

.chat-toggle-buttons button:hover {
    background-color: #0056b3;
}



.login-btn, .register-btn {
    padding: 8px; 
    cursor: pointer; 
    background: #1f599b; 
    color: white; 
    border: none; 
    border-radius: 10px;
    width:100%;
}

.login-container,.register-container {

    background-color: #fff;
    border-radius: 8px;
    padding-left: 35%;
    padding-right:35%;
    padding-top:50px;
    padding-bottom:50px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 100vh;
}


.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

img {
    width: 100%; /* Ensures image scales down */
    height: auto; /* Maintains aspect ratio */
    display: flex; /* Removes extra spacing */
}
  

.messages {
    margin-top: 15px;
}

.alert {
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-dismissible .close {
    font-size: 20px;
    color: #721c24;
    opacity: 1;
}

.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #1f599b;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
    color:blue;
}





.helptext, ul {
    font-size: 12px;
    color:rgb(48, 46, 46);
}


.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #1f599b;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
    color:blue;
}


.membership-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 350px;
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.email {
    font-size: 14px;
    color: #777;
}

.balance-box {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
}

.balance-label {
    color: #555;
}

.balance-amount {
    color: #1f599b;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background: #007bff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover {
    background: #0056b3;
}

.user-menu-info {
    float:right;
    margin-top: -100px;
    padding:10px;
}

.two-column {
    display: flex;
}
  
.column-left {
    width: 70%;
}
  
.column-right {
    width: 30%;
}

section {
    background: white; /* Optional, helps shadow stand out */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Even shadow on all sides */
    margin-bottom: 2rem; /* Optional spacing between sections */
}

.dashboard-btn, .dashboard-btn:hover {
    background-color: white;
    color: #0056b3;
    border: none;
    margin-right: 25px;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    float: right;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

h2.section-div, h3.section-div, p.section-div, li.section-div{
    color:white;

}

div.section-div{
    padding:10px;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);  /* semi-transparent grey */
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    #chat-container, #preview-container {
        width: 100%;
        padding:0px;
    }

    header nav ul {
        flex-direction: column;
        padding: 0;
    }

    header nav ul li {
        margin-bottom: 2px;
        width:25px;
    }

    main {
        padding: 15px;
        margin: 0px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
      }

    footer {
        font-size: 14px;
        padding: 10px 0;
    }

    .logout-btn {
        background-color: white;
        color: #1f599b;
        border: none;
        padding: 8px 14px;
        margin-right:25px;
        margin-top:-35px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 5px;
        float:right;
    }


    h2 {
        font-size: 24px;
    }

    button {
        font-size: 14px;
    }

    input {
        font-size: 14px;
    }

    .login-container, .register-container {
        width: 90%;
        padding: 20px;
    }

    h2 {
        font-size: 24px;
    }

    button {
        font-size: 14px;
    }

    input {
        font-size: 14px;
    }

    .user-menu-info{
        float:right;
        padding:10px;
    }

    .two-column {
        flex-direction: column;
    }
      
    .column-left {
        width: 100%;
    }
      
    .column-right {
        width: 100%;
    }


    
      
}
