/* Boson Info Tech */
/* main.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
/* Make all same background */
header, .sidebar, footer {
    background: linear-gradient(180deg, #1e1f29 0%, #282a36 100%);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-body {
    display: flex;
    flex: 1;
}

/* Header stays at top */

.header {
    width: 100%;
    /* background-color: #2c3e50; */
     /* background: linear-gradient(180deg, #1e1f29 0%, #282a36 100%); */
    color: white;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header Left - Logo */
.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-left .logo:hover {
    color: #3498db;
}

/* Header Navigation - Center */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

/* Header Right - User/Auth Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #ecf0f1;
    font-weight: 500;
}

/* Button Styles */
.btn-login,
.btn-register,
.btn-logout {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-login {
    background-color: transparent;
    border-color: #3498db;
    color: #3498db;
}

.btn-login:hover {
    background-color: #3498db;
    color: white;
}

.btn-register {
    background-color: #3498db;
    color: white;
}

.btn-register:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem 20px;
        gap: 1rem;
    }
    
    .header-nav ul {
        gap: 1rem;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-login,
    .btn-register,
    .btn-logout {
        width: 100%;
        text-align: center;
    }
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    /* padding: 20px; */
}

small {
    display: inline-block;
    margin: 0 5px;
}


/* Footer stays at bottom */
.footer {
    
    width: 100%;
    /* background-color: #2c3e50; */
     /* background: linear-gradient(180deg, #1e1f29 0%, #282a36 100%); */
    color: white;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
    margin: 0 auto;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* footer new style */

.footer {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;    /* ✅ keeps text & links aligned */
    min-height: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.5;       /* ✅ ensures consistent text height */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
    margin: 0 auto;
    width: 100%;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;          /* ✅ add spacing between links */
    line-height: 1.5;       /* ✅ aligns with text */
}

.footer a:hover {
    text-decoration: underline;
}


.user-name {
    margin: 5px 0 0;
    font-size: 16px; 
    font-weight: bold;
}
/* Customer support button */
.support-bar {
  position: fixed;
  top: 40%;
  right: -200px; /* hidden position */
  width: 200px;
  background-color: #2c3e50;
  color: white;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  font-family: Arial, sans-serif;
}

.support-bar.open {
  right: 0; /* visible when open */
}

.support-handle {
  position: absolute;
  top: 0;
  left: -35px;
  width: 35px;
  height: 50px;
  background-color: #2980b9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.support-content {
  padding: 10px;
  text-align: center;
}

.support-number {
  font-size: 16px;
  font-weight: bold;
  color: #f1c40f;
}

/* terms page   */

.terms-page {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px;
  color: #2c3e50;
  line-height: 1.6;
}
/* Enhanced Terms Page */
.enhanced-terms {
  max-width: 900px;
  width: 90%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 40px;
  margin: 30px auto;
  color: #2c3e50;
  line-height: 1.8;
  animation: fadeIn 0.5s ease-in-out;
}

.enhanced-terms .hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.enhanced-terms .hero-section h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.enhanced-terms .hero-section .last-updated {
  font-size: 0.95rem;
  color: #7f8c8d;
}

.enhanced-terms h2 {
  font-size: 1.4rem;
  color: #34495e;
  margin-top: 25px;
  margin-bottom: 10px;
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.enhanced-terms p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.enhanced-terms a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.enhanced-terms a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* subtle fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* new styles for common pages  */

/* Contact Page Styles */
.contact-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  padding: 40px;
  animation: fadeIn 0.5s ease-in-out;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.contact-info p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-info a {
  color: #3498db;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form .form-control {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52,152,219,0.3);
  outline: none;
}

.contact-form button {
  margin-top: 10px;
}
/* Common modal container - centers all modals */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal box */
.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
.close-modal:hover {
  color: #e74c3c;
}

/* Smooth fade-in animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
