/* ============================================
   BORAWNIII STUDIO - DASHBOARD CSS
   Clean minimal UI, modern spacing
   ============================================ */

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #f5f5f7;
  color: #222;
}

/* ============================================
   TOP NAVBAR
   ============================================ */

nav {
  width: 100%;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
}

nav .menu {
  display: flex;
  gap: 20px;
}

nav .menu a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

nav .menu a.active {
  color: #000;
  border-bottom: 2px solid #0077ff;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page {
  display: none;
  padding: 20px 24px;
}

.page.active {
  display: block;
}

/* ============================================
   UPLOAD PAGE
   ============================================ */

#dropzone {
  width: 100%;
  height: 240px;
  background: #fff;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 20px;
}

#dropzone.hover {
  border-color: #0077ff;
  background: #eef5ff;
}

#uploadButton {
  padding: 12px 22px;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

#uploadButton:disabled {
  opacity: 0.5;
}

#uploadResult {
  margin-top: 20px;
}

.file-item {
  background: #fff;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
}

/* ============================================
   POST LIST (Pending / Posted)
   ============================================ */

.post-item {
  display: flex;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e4e4e4;
  padding: 14px;
  margin-bottom: 18px;
  gap: 15px;
  align-items: center;
}

.post-item img.thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.post-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.post-info .caption {
  font-size: 15px;
  font-weight: 500;
}

.post-info button {
  padding: 8px 14px;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  margin-right: 6px;
  cursor: pointer;
}

.post-info button:nth-child(2) {
  background: #d9534f;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e4e4e4;
  max-width: 420px;
}

.settings-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.settings-box select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 14px;
}

#saveSettings {
  padding: 10px 20px;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 650px) {

  nav .menu {
    gap: 10px;
  }

  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-item img.thumb {
    width: 100%;
    height: auto;
  }

  .post-info button {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  right: 20px;
  top: -60px;
  padding: 12px 18px;
  color: #fff;
  background: #444;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9999;
}
.toast.show {
  top: 20px;
  opacity: 1;
}

.toast.success { background: #28a745; }
.toast.error   { background: #d9534f; }
.toast.info    { background: #007bff; }
