/* ============================================================
   AIGENCY ADMIN THEME — DARK BLUE MODE (FULL VERSION)
   ============================================================ */

/* FONTS & RESET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  background-color: #0b0b0b;
  color: #ffffff;
  height: 100%;
  scroll-behavior: smooth;
}

/* LINKS */
a {
  color: #3aa6ff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #1e90ff;
  border-radius: 4px;
}

/* NAVBAR / HEADER */
.navbar, header {
  background-color: #0e0e0e;
  border-bottom: 1px solid #1e90ff55;
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.navbar-brand {
  font-weight: 700;
  color: #3aa6ff;
  font-size: 20px;
}

.navbar a {
  color: #ffffff;
  margin-left: 15px;
}

.navbar a:hover {
  color: #1e90ff;
}

/* SIDEBAR (LEFT PANEL) */
.sidebar {
  background-color: #0b0b0b;
  border-right: 1px solid #1e90ff33;
  width: 240px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 60px;
  padding-top: 10px;
  transition: all 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 15px rgba(30, 144, 255, 0.1);
}

.sidebar h3 {
  color: #3aa6ff;
  margin: 15px 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  gap: 10px;
}

.sidebar a i {
  margin-right: 10px;
  color: #1e90ff;
  width: 20px;
  text-align: center;
}

.sidebar a span {
  flex: 1;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(90deg, #1e90ff30, #1e90ff10);
  color: #fff;
  border-left: 3px solid #1e90ff;
}

.sidebar.collapsed {
  width: 60px;
  overflow: hidden;
}

.sidebar.collapsed a {
  justify-content: center;
  padding: 10px 12px;
}

.sidebar.collapsed a span {
  display: none;
}

.sidebar.collapsed a i {
  margin-right: 0;
}

/* MAIN CONTENT */
main, .content-wrapper {
  margin-left: 240px;
  padding: 30px;
  background-color: #0b0b0b;
  min-height: calc(100vh - 60px);
  transition: margin 0.3s ease;
}

main.expanded, .content-wrapper.expanded {
  margin-left: 60px;
}

body.sidebar-collapsed main,
body.sidebar-collapsed .content-wrapper {
  margin-left: 60px;
}

/* HEADINGS */
h1, h2, h3, h4, h5 {
  color: #ffffff;
  font-weight: 600;
}

p {
  color: #cccccc;
  line-height: 1.6;
}

/* CARDS */
.card {
  background-color: #101010;
  border: 1px solid #1e90ff33;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.25);
}

/* TABLES */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0f0f0f;
}

.table th, .table td {
  border: 1px solid #1e90ff33;
  padding: 12px 10px;
  color: #fff;
}

.table th {
  background-color: #121212;
  color: #3aa6ff;
  text-transform: uppercase;
  font-size: 13px;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: #121212;
}
.table-striped tbody tr:nth-child(even) {
  background-color: #0e0e0e;
}
.table-hover tbody tr:hover {
  background: #1e90ff11;
}

/* TABLE MEDIA PREVIEW */
.wrapper-form-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(30, 144, 255, 0.35);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.12);
}

.wrapper-form-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proposal-output {
  background: #0f0f0f;
  border: 1px solid rgba(30, 144, 255, 0.35);
  border-radius: 10px;
  padding: 18px;
  color: #d7e1f2;
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: 'Inter', 'Consolas', 'Menlo', monospace;
}

/* BUTTONS */
.btn {
  border-radius: 6px;
  border: 1px solid #1e90ff;
  background: #1e90ff;
  color: #fff;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  padding: 8px 15px;
}

.btn:hover {
  background: #3aa6ff;
  box-shadow: 0 0 10px #1e90ff55;
}

.btn-outline {
  background: transparent;
  border: 1px solid #1e90ff;
  color: #1e90ff;
}
.btn-outline:hover {
  background: #1e90ff;
  color: #fff;
}

/* FORMS */
.form-control {
  background: #0f0f0f;
  border: 1px solid #1e90ff55;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px;
  transition: border 0.2s;
}

.form-control:focus {
  border: 1px solid #3aa6ff;
  outline: none;
  box-shadow: 0 0 5px #1e90ff55;
}

label {
  color: #b0b0b0;
  font-size: 14px;
}

/* ALERTS */
.alert {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  font-weight: 500;
}

.alert-info {
  background: #1e90ff22;
  color: #3aa6ff;
  border: 1px solid #1e90ff55;
}
.alert-success {
  background: #00ff2233;
  color: #00ff99;
  border: 1px solid #00ff6655;
}
.alert-danger {
  background: #ff003333;
  color: #ff5577;
  border: 1px solid #ff336655;
}

/* LOGIN PAGE */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at top, #0b0b0b 0%, #000 100%);
}

.login-card {
  width: 400px;
  background: #101010;
  border: 1px solid #1e90ff33;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(30,144,255,0.15);
}

.login-card h2 {
  color: #3aa6ff;
  margin-bottom: 20px;
}

.login-card input {
  width: 100%;
  margin: 8px 0;
  background: #0f0f0f;
  border: 1px solid #1e90ff33;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}

.login-card button {
  width: 100%;
  margin-top: 10px;
  background: #1e90ff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  transition: 0.2s;
}

.login-card button:hover {
  background: #3aa6ff;
  box-shadow: 0 0 15px #1e90ff55;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  background: #0b0b0b;
  border-top: 1px solid #1e90ff33;
}

/* MODALS */
.modal-content {
  background: #101010;
  border: 1px solid #1e90ff44;
  color: #fff;
}

.modal-header, .modal-footer {
  border-color: #1e90ff22;
}

.modal-title {
  color: #3aa6ff;
}

/* HAMBURGER BUTTON */
#sidebarToggle {
  border: 1px solid #1e90ff;
  background: transparent;
  color: #1e90ff;
  padding: 5px 10px;
  font-size: 18px;
  border-radius: 5px;
  transition: all 0.3s;
}
#sidebarToggle:hover {
  background: #1e90ff;
  color: #fff;
}

/* ANIMATIONS */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
