/* Global dark theme styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #121212;
    color: #fff;
}
.topbar {
    background: #1c1c1c;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a {
    color: #9b59b6;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    transition: 0.3s;
}
.topbar a:hover {
    color: #8e44ad;
}
.btn {
    padding: 10px 20px;
    background: #9b59b6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}
.btn:hover {
    background: #8e44ad;
}
input, button {
    font-family: 'Segoe UI', Arial, sans-serif;
}
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}
button {
    width: 100%;
    padding: 12px;
    background: #9b59b6;
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
    background: #8e44ad;
}
.container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}
.card {
    background: #1c1c1c;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
h2, h3 {
    color: #9b59b6;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table th, table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}
p.message {
    color: #ff6f61;
}

/* ====== Mobile Responsiveness Enhancements (added by GPT) ====== */

/* Ensure images and containers scale correctly */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Responsive text sizing */
body {
  word-wrap: break-word;
  overflow-x: hidden;
}

/* Layout containers adjust automatically */
.container, .content, .main, .wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

/* Responsive tables */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* Buttons and form fields */
button, input, select, textarea {
  font-size: 1em;
  max-width: 100%;
}

/* Mobile-specific layout fixes */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar {
    display: none;
  }

  .header, .footer {
    text-align: center;
  }

  .card, .box, .panel {
    width: 100% !important;
    margin-bottom: 15px;
  }
}

/* Small screens */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1, h2, h3 {
    font-size: 1.2em;
  }

  .btn, .button {
    padding: 10px 16px;
    font-size: 0.9em;
  }
}


/* Added responsive card flex (keeps same theme/colors) */
.cards { display:flex; flex-wrap:wrap; gap:25px; }
.cards .card { min-width:240px; flex:1 1 240px; }
@media(max-width:900px){ .cards { flex-direction:column; align-items:center; } }
