/* Modern Dashboard CSS for Event Organizers
 * A clean, responsive design with modern UI elements
 */

:root {
  --primary-color: #4a6cf7;
  --primary-dark: #3a56c5;
  --secondary-color: #6c757d;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --light-color: #f3f4f6;
  --dark-color: #1f2937;
  --body-bg: #f9fafb;
  --card-bg: #ffffff;
  --text-color: #374151;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

/* Dashboard Layout */
.mep-mp-dashboard-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--body-bg);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .mep-mp-dashboard-wrapper {
    flex-direction: row;
  }
  
  /* Override any theme content width limitations */
  .entry-content .mep-mp-dashboard-wrapper,
  .site-content .mep-mp-dashboard-wrapper,
  .content-area .mep-mp-dashboard-wrapper,
  #primary .mep-mp-dashboard-wrapper,
  #main .mep-mp-dashboard-wrapper,
  .page .mep-mp-dashboard-wrapper,
  .post .mep-mp-dashboard-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Sidebar */
.mep-mp-dashboard-sidebar {
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  padding: 20px 0;
  width: 100%;
  box-shadow: var(--shadow);
  z-index: 10;
}

@media (min-width: 768px) {
  .mep-mp-dashboard-sidebar {
    width: 240px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 1200px) {
  .mep-mp-dashboard-sidebar {
    width: 260px;
  }
}

.mep-mp-dashboard-sidebar h2 {
  font-size: 1rem;
        margin: 0 0 1.0rem;
        padding: 0 14px;
        color: var(--primary-color);
        display: flex
;
        align-items: center;
        gap: 10px;
}

.mep-mp-dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mep-mp-dashboard-menu li {
  margin: 0;
}

.mep-mp-dashboard-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-size: 19px;
}

.mep-mp-dashboard-menu a:hover,
.mep-mp-dashboard-menu a.active {
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.mep-mp-dashboard-menu .dashicons {
  margin-right: 10px;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle */
.mep-mp-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  transition: var(--transition);
}

.mep-mp-menu-toggle:hover {
  background-color: var(--primary-dark);
}

.mep-mp-menu-toggle .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .mep-mp-dashboard-sidebar {
    height: auto;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .mep-mp-dashboard-sidebar.menu-open {
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .mep-mp-dashboard-sidebar h2 {
    padding-right: 50px;
  }
}

/* Main Content Area */
.mep-mp-dashboard-content {
  flex: 1;
  padding: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .mep-mp-dashboard-content {
    padding: 30px;
    overflow-x: hidden;
  }
}

@media (min-width: 1200px) {
  .mep-mp-dashboard-content {
    padding: 40px;
  }
}

.mep-mp-dashboard-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.mep-mp-dashboard-header h1 {
  font-size: 1.8rem;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--dark-color);
}

@media (min-width: 1200px) {
  .mep-mp-dashboard-header h1 {
    font-size: 2rem;
  }
}

/* Dashboard Cards */
.mep-mp-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 992px) {
  .mep-mp-dashboard-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .mep-mp-dashboard-cards {
    grid-template-columns: repeat(6, 1fr);
  }
}

.mep-mp-dashboard-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.mep-mp-dashboard-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(74,108,247,0.05) 100%);
  opacity: 0;
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mep-mp-dashboard-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 5px 15px -5px rgba(0, 0, 0, 0.04);
}

.mep-mp-dashboard-card:hover::after {
  opacity: 1;
}

.mep-mp-dashboard-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.mep-mp-dashboard-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  margin-bottom: 15px;
}

.mep-mp-dashboard-card-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.mep-mp-dashboard-card-number {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--dark-color);
}

.mep-mp-dashboard-card-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Recent Items Sections */
.mep-mp-dashboard-section {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease forwards;
}

@media (min-width: 992px) {
  .mep-mp-dashboard-section {
    padding: 25px;
  }
}

.mep-mp-dashboard-section h2 {
  font-size: 1.2rem;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--dark-color);
}

@media (min-width: 992px) {
  .mep-mp-dashboard-section h2 {
    font-size: 1.3rem;
  }
}

/* Tables */
.mep-mp-dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.mep-mp-dashboard-table th,
.mep-mp-dashboard-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .mep-mp-dashboard-table th,
  .mep-mp-dashboard-table td {
    padding: 15px 20px;
  }
}

.mep-mp-dashboard-table th {
  background-color: var(--light-color);
  font-weight: 600;
  color: var(--text-color);
}

.mep-mp-dashboard-table tr:last-child td {
  border-bottom: none;
}

.mep-mp-dashboard-table tr:hover td {
  background-color: rgba(243, 244, 246, 0.5);
}

/* Status Labels */
.mep-mp-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.mep-mp-status-pending {
  background-color: var(--warning-color);
  color: #fff;
}

.mep-mp-status-approved,
.mep-mp-status-completed {
  background-color: var(--success-color);
  color: #fff;
}

.mep-mp-status-rejected,
.mep-mp-status-cancelled {
  background-color: var(--danger-color);
  color: #fff;
}

/* Buttons */
.mep-mp-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.mep-mp-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.mep-mp-button.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.mep-mp-button.loading:after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.mep-mp-button.loading span {
  visibility: hidden;
}

.mep-mp-button-secondary {
  background-color: var(--secondary-color);
}

.mep-mp-button-secondary:hover {
  background-color: #5a6268;
}

.mep-mp-button-success {
  background-color: var(--success-color);
}

.mep-mp-button-success:hover {
  background-color: #0da56f;
}

.mep-mp-button-danger {
  background-color: var(--danger-color);
}

.mep-mp-button-danger:hover {
  background-color: #dc3030;
}

/* Refresh Button */
.mep-mp-refresh-data {
  display: inline-flex;
  align-items: center;
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 15px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.mep-mp-refresh-data:hover {
  background-color: var(--primary-color);
  color: white;
}

.mep-mp-refresh-data .dashicons {
  margin-right: 6px;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Tab Navigation */
.mep-mp-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mep-mp-tab-link {
  padding: 10px 15px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.mep-mp-tab-link:hover {
  color: var(--primary-color);
}

.mep-mp-tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.mep-mp-tab-content {
  display: none;
}

.mep-mp-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Notifications */
.mep-mp-notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 300px;
}

.mep-mp-notification {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  position: relative;
}

.mep-mp-notification.active {
  transform: translateX(0);
}

.mep-mp-notification .dashicons {
  margin-right: 10px;
  font-size: 18px;
}

.mep-mp-notification p {
  margin: 0;
  flex: 1;
  padding-right: 20px;
}

.mep-mp-notification-close {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 12px;
  right: 12px;
}

.mep-mp-notification-success {
  border-left: 4px solid var(--success-color);
}

.mep-mp-notification-success .dashicons {
  color: var(--success-color);
}

.mep-mp-notification-error {
  border-left: 4px solid var(--danger-color);
}

.mep-mp-notification-error .dashicons {
  color: var(--danger-color);
}

.mep-mp-notification-warning {
  border-left: 4px solid var(--warning-color);
}

.mep-mp-notification-warning .dashicons {
  color: var(--warning-color);
}

/* Empty State */
.mep-mp-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-light);
  background-color: rgba(243, 244, 246, 0.3);
  border-radius: var(--border-radius);
  border: 1px dashed var(--border-color);
}

.mep-mp-empty-state .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
  color: var(--primary-color);
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mep-mp-empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .mep-mp-dashboard-cards {
    grid-template-columns: 1fr;
  }
  
  .mep-mp-dashboard-table {
    display: block;
    overflow-x: auto;
  }
}

/* View All Links */
.mep-mp-view-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.mep-mp-view-all .mep-mp-button {
  font-size: 0.85rem;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
}

/* Dashboard Sections Grid */
.mep-mp-dashboard-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .mep-mp-dashboard-sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Style adjustments for the nested sections */
.mep-mp-dashboard-sections-grid .mep-mp-dashboard-section {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mep-mp-dashboard-sections-grid .mep-mp-dashboard-table {
  flex: 1;
}

.mep-mp-dashboard-sections-grid .mep-mp-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Breadcrumb Navigation */
.mep-mp-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.mep-mp-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.mep-mp-breadcrumb a:hover {
  color: var(--primary-color);
}

.mep-mp-breadcrumb .separator {
  display: flex;
  align-items: center;
  margin: 0 6px;
}

.mep-mp-breadcrumb .separator .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
  color: var(--text-light);
}

.mep-mp-breadcrumb .current {
  color: var(--primary-color);
  font-weight: 500;
} 