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

body, html {
  font-family: 'Inter', sans-serif;
  height: 100%;
  background: #f8fafc;
  color: #1e293b;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Section */
.top-section {
  height: 35vh;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.top-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.1;
}

.bottom-section {
  padding: 20px 16px 80px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

/* Dashboard Grid */
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  background: #f1f5f9;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.card-label {
  font-size: 16px;
  font-weight: 500;
  color: #334155;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  z-index: 1000;
}

.footer a {
  text-decoration: none;
  color: #64748b;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 12px;
}

.footer a.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.footer-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar input {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.3s ease;
  width: 200px;
}

.search-bar input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tables */
.table-container {
  display: none;
  margin-top: 20px;
  padding-bottom: 80px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  margin: 0;
}

.table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  padding: 12px 16px;
}

.table td {
  padding: 12px 16px;
  color: #334155;
}

/* Form Elements */
.material-input {
  position: relative;
  margin-bottom: 24px;
}

.material-input input, 
.material-input select {
  border: none;
  border-bottom: 2px solid #e2e8f0;
  width: 100%;
  padding: 12px 8px;
  background: none;
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.material-input input:focus, 
.material-input select:focus {
  border-color: #3b82f6;
}

.material-input label {
  position: absolute;
  top: 12px;
  left: 8px;
  color: #94a3b8;
  transition: 0.3s;
  pointer-events: none;
  font-size: 16px;
}

.material-input input:focus + label,
.material-input input:not(:placeholder-shown) + label,
.material-input select:focus + label,
.material-input select:not([value=""]) + label {
  top: -12px;
  font-size: 12px;
  color: #3b82f6;
}

/* Modal */
.modal-content {
  border-radius: 16px;
  border: none;
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 24px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  padding: 20px 24px;
}

/* Buttons */
.btn-primary {
  background: #3b82f6;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #334155;
}

/* Pagination */
.pagination .page-link {
  color: #3b82f6;
  border: none;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background: #3b82f6;
  color: white;
}

.pagination .page-link:hover {
  background: #f1f5f9;
  color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .search-bar {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .footer {
    padding: 8px 0;
  }
  
  .footer a {
    padding: 6px 12px;
  }
} 