/* Suno AI Design System for BidEaze PHP */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0a0a0f;
  --bg-sidebar: #101017;
  --bg-card: #161622;
  --bg-card-hover: #1c1c2b;
  --bg-input: #12121b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 77, 77, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #9494a8;
  --text-muted: #626278;
  --accent-orange: #ff5e36;
  --accent-pink: #ff2a70;
  --accent-gradient: linear-gradient(135deg, #ff5e36 0%, #ff2a70 100%);
  --accent-glow: 0 8px 24px rgba(255, 77, 77, 0.35);
  --success-color: #00d26a;
  --warning-color: #ffb800;
  --danger-color: #ff4757;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-input: 12px;
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glow Background like Suno */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 94, 54, 0.15) 0%, rgba(255, 42, 112, 0.08) 40%, rgba(10, 10, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Wrapper */
.suno-app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.suno-sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.suno-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
}

.suno-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: var(--accent-glow);
}

.suno-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.suno-user-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.suno-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.suno-user-info {
  flex: 1;
  overflow: hidden;
}

.suno-user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suno-user-plan {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Nav Menu */
.suno-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.suno-nav-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 14px 12px 6px 12px;
}

.suno-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.suno-nav-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.suno-nav-item.active {
  color: #fff;
  background: rgba(255, 94, 54, 0.15);
  font-weight: 600;
  border: 1px solid rgba(255, 94, 54, 0.25);
}

.suno-nav-item.active i {
  color: var(--accent-orange);
}

.suno-nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Upgrade Card Banner */
.suno-upgrade-card {
  background: linear-gradient(135deg, rgba(255, 94, 54, 0.2) 0%, rgba(255, 42, 112, 0.1) 100%);
  border: 1px solid rgba(255, 94, 54, 0.3);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-top: auto;
}

.suno-upgrade-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.suno-upgrade-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Main Content Area */
.suno-main {
  flex: 1;
  margin-left: 250px;
  padding: 32px 40px 60px 40px;
  min-height: 100vh;
}

.suno-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.suno-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.suno-page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.suno-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search Bar Top */
.suno-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  width: 260px;
  transition: all 0.2s ease;
}

.suno-search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

.suno-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.suno-search-box i {
  color: var(--text-muted);
}

/* Buttons */
.btn-suno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-suno-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn-suno-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 77, 77, 0.5);
  color: #fff;
}

.btn-suno-secondary {
  background-color: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-suno-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-suno-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* Cards & Grid */
.suno-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.suno-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.suno-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suno-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.suno-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.suno-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .suno-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .suno-grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Stat Cards */
.suno-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.suno-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 94, 54, 0.12);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.suno-stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.suno-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Badges */
.suno-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(0, 210, 106, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(0, 210, 106, 0.3);
}

.badge-warning {
  background: rgba(255, 184, 0, 0.15);
  color: var(--warning-color);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.badge-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.badge-purple {
  background: rgba(165, 94, 255, 0.15);
  color: #a55eff;
  border: 1px solid rgba(165, 94, 255, 0.3);
}

/* Form Controls */
.suno-form-group {
  margin-bottom: 20px;
}

.suno-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.suno-input,
.suno-select,
.suno-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.suno-input:focus,
.suno-select:focus,
.suno-textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 94, 54, 0.15);
}

/* Toggle Switch */
.suno-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.suno-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.suno-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #272738;
  transition: .3s;
  border-radius: 26px;
}

.suno-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked+.suno-slider {
  background: var(--accent-gradient);
}

input:checked+.suno-slider:before {
  transform: translateX(22px);
}

/* Settings Sub-Nav Tabs */
.suno-settings-tabs {
  display: flex;
  gap: 8px;
  background: #101017;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.suno-tab-item {
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.suno-tab-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.suno-tab-item.active {
  background: #101017;
  color: #ff5e36;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 94, 54, 0.3);
}

/* Place Bids Section & Subtabs (fl-login-ref) */
.fl-card-container {
  background-color: #101017;
  border-radius: 20px;
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-bottom: 32px;
}

.fl-subtab-item {
  position: relative;
  cursor: pointer;
  padding-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fl-subtab-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.fl-subtab-item.active {
  color: #ff5e36;
}

.fl-subtab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
}

/* Filter Pills */
.fl-pill-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fl-pill-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.fl-pill-btn:hover {
  color: #fff;
}

.fl-pill-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 94, 54, 0.3);
}

/* Filter Dropdown Popup */
.fl-filter-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 12px;
  width: 280px;
  background-color: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 90;
}

.fl-filter-dropdown-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.fl-filter-dropdown-link:hover {
  background: rgba(255, 94, 54, 0.15);
  border-color: rgba(255, 94, 54, 0.3);
  color: #fff;
}

/* Tables */
.suno-table-wrapper {
  overflow-x: auto;
}

.suno-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.suno-table th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.suno-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.suno-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Modal Overlay (Suno style dialog) */
.suno-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.suno-modal {
  background: #14141d;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.suno-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.suno-modal-title {
  font-size: 24px;
  font-weight: 800;
}

.suno-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Chat Layout */
.suno-chat-wrapper {
  display: flex;
  height: calc(100vh - 160px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.suno-chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.suno-chat-list {
  overflow-y: auto;
  flex: 1;
}

.suno-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suno-chat-item:hover,
.suno-chat-item.active {
  background: rgba(255, 94, 54, 0.1);
}

.suno-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.suno-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suno-chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suno-message {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.suno-message.user {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.suno-message.client {
  align-self: flex-start;
  background: #20202e;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.suno-chat-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #272738;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f56;
}

/* Mobile Header Bar & Off-Canvas Navigation */
.suno-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(16, 16, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
}

.suno-mobile-menu-btn {
  background: rgba(255, 94, 54, 0.15);
  border: 1px solid rgba(255, 94, 54, 0.3);
  color: var(--accent-orange);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suno-mobile-menu-btn:active {
  transform: scale(0.95);
}

.suno-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.suno-sidebar-backdrop.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.suno-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & DESKTOP)
   ========================================================================== */

.suno-dashboard-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.suno-summary-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.suno-responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
  .suno-main {
    padding: 24px 20px 40px 20px;
  }

  .suno-dashboard-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .suno-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .suno-mobile-header {
    display: flex !important;
  }

  .suno-app-container {
    flex-direction: column;
  }

  .suno-sidebar {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    height: calc(100vh - 60px) !important;
    z-index: 9999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8) !important;
    overflow-y: auto !important;
    display: flex !important;
    background-color: #101017 !important;
    padding-top: 16px !important;
  }

  .suno-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .suno-sidebar .suno-logo {
    display: none !important;
  }

  .suno-sidebar .suno-nav {
    flex-direction: column;
    gap: 6px;
  }

  .suno-sidebar .suno-nav-item {
    padding: 12px 14px;
    font-size: 14px;
  }

  .suno-main {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px 40px 16px;
  }

  .suno-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .suno-page-title {
    font-size: 22px;
  }

  .suno-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .fl-card-container {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .suno-summary-cards-grid,
  .suno-responsive-grid-2,
  .suno-grid-4,
  .suno-grid-3,
  .suno-grid-2 {
    grid-template-columns: 1fr;
  }

  .suno-settings-tabs {
    padding: 4px;
    gap: 4px;
  }

  .suno-tab-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .suno-chat-wrapper {
    flex-direction: column;
    height: calc(100vh - 180px);
  }

  .suno-chat-sidebar {
    width: 100%;
    height: 180px;
    max-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .suno-chat-main {
    height: calc(100% - 180px);
  }

  .suno-modal {
    width: 92%;
    padding: 20px 16px;
    margin: 10px;
  }

  .suno-table th,
  .suno-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn-suno {
    padding: 8px 18px;
    font-size: 13px;
  }
}