/* ===== Global App Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

* {
  font-family: 'Noto Sans SC', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* App Header */
.xm-app-header {
  background: #fff !important;
  border-bottom: 1px solid #e8eaed !important;
  box-shadow: none !important;
}

.xm-app-header .xm-logo {
  font-size: 22px;
  font-weight: 700;
  color: #202124;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xm-app-header .xm-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.xm-app-header .xm-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.xm-app-header .xm-nav-link:hover {
  color: #1a73e8;
  background: #e8f0fe;
}

.xm-app-header .xm-nav-link.active {
  color: #1a73e8;
}

/* Sidebar */
.xm-sidebar {
  background: #1a2233 !important;
  border-right: none !important;
}

.xm-sidebar .xm-sidebar-logo {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.xm-sidebar .xm-sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xm-sidebar .xm-sidebar-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.xm-sidebar .xm-sidebar-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.xm-sidebar .v-list-item {
  margin: 2px 8px;
  border-radius: 8px !important;
  min-height: 44px;
}

.xm-sidebar .v-list-item .v-list-item__title {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
}

.xm-sidebar .v-list-item .v-icon {
  color: rgba(255,255,255,0.5);
}

.xm-sidebar .v-list-item--active {
  background: rgba(26,115,232,0.25) !important;
}

.xm-sidebar .v-list-item--active .v-list-item__title {
  color: #8ab4f8 !important;
  font-weight: 500;
}

.xm-sidebar .v-list-item--active .v-icon {
  color: #8ab4f8 !important;
}

.xm-sidebar .v-list-item:hover {
  background: rgba(255,255,255,0.06) !important;
}

/* ===== Footer ===== */
.xm-footer {
  background: #202124 !important;
  color: rgba(255,255,255,0.7);
}

.xm-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.xm-footer a:hover {
  color: #8ab4f8;
}

/* Footer Main */
.xm-footer-main {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.xm-footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xm-footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.xm-footer-brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 320px;
}

.xm-footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.xm-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xm-footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: all 0.2s;
}

.xm-footer-links a:hover {
  color: #8ab4f8;
  padding-left: 4px;
}

/* Footer Contact */
.xm-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xm-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* Footer Bottom */
.xm-footer-bottom {
  padding: 20px 0;
}

.xm-footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.xm-footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.xm-footer-social:hover {
  background: rgba(255,255,255,0.12);
}

.xm-footer-social:hover .v-icon {
  color: #8ab4f8 !important;
}

/* Common Utilities */
.xm-section {
  padding: 80px 0;
}

.xm-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #202124;
  text-align: center;
  margin-bottom: 16px;
}

.xm-section-subtitle {
  font-size: 16px;
  color: #5f6368;
  text-align: center;
  margin-bottom: 48px;
}

.xm-card {
  border: 1px solid #e8eaed !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.xm-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  border-color: #d2e3fc !important;
}

.xm-card-selected {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 2px #1a73e8 !important;
}

.xm-btn-primary {
  background: #1a73e8 !important;
  color: #fff !important;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.xm-btn-primary:hover {
  background: #1557b0 !important;
  box-shadow: 0 2px 8px rgba(26,115,232,0.3) !important;
}

.xm-btn-outline {
  border: 1px solid #dadce0 !important;
  color: #1a73e8 !important;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

.xm-btn-outline:hover {
  background: #e8f0fe !important;
  border-color: #1a73e8 !important;
}

/* Status badges */
.xm-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.xm-badge-success {
  background: #e6f4ea;
  color: #1e8e3e;
}

.xm-badge-warning {
  background: #fef7e0;
  color: #e37400;
}

.xm-badge-error {
  background: #fce8e6;
  color: #d93025;
}

.xm-badge-info {
  background: #e8f0fe;
  color: #1a73e8;
}

/* Progress bars */
.xm-progress .v-progress-linear {
  border-radius: 4px;
}

/* Data table */
.xm-table thead th {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #5f6368 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8f9fa !important;
}

.xm-table tbody td {
  font-size: 14px;
  color: #202124;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}
