* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background-color: #4285f4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
}

.admin-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: none;
  color: #5f6368;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

.admin-login-btn:hover {
  background-color: rgba(66, 133, 244, 0.04);
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}

.logo-container {
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 300px;
  height: auto;
}

.search-container {
  width: 100%;
  max-width: 600px;
  margin-bottom: 40px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 16px;
  background: white;
}

.search-box:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: transparent;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: #4285f4;
  padding: 8px;
}

.search-results {
  text-align: center;
  margin-top: 8px;
  color: #5f6368;
  font-size: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 500;
  color: #3c4043;
  margin-bottom: 8px;
}

.section-header p {
  color: #5f6368;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  gap: 16px;
  justify-content: center;
  max-width: 800px;
  margin-bottom: 40px;
}

.app-card {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.app-card:hover {
  background-color: #e1e3e1;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: #e8eaed;
  transform: translateY(-2px);
}

.app-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  padding: 8px;
  background-color: #e1e3e1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.app-name {
  font-size: 12px;
  color: #3c4043;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-shortcut {
  border: 1px dashed #dadce0;
  background: none;
  cursor: pointer;
}

.add-shortcut:hover {
  border-color: #4285f4;
  background-color: rgba(66, 133, 244, 0.04);
}

.add-icon {
  font-size: 32px;
  color: #5f6368;
  margin-bottom: 8px;
}

.admin-dashboard {
  padding: 32px 0;
}

.dashboard-header {
  background-color: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-icon {
  width: 48px;
  height: 48px;
  background-color: #4285f4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background-color: #34a853;
  color: white;
}

.btn-primary:hover {
  background-color: #2d8c47;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #dadce0;
  color: #3c4043;
}

.btn-outline:hover {
  background-color: #f8f9fa;
}

.btn-danger {
  background-color: #ea4335;
  color: white;
}

.btn-danger:hover {
  background-color: #d33425;
}

.table-container {
  border: 1px solid #dadce0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #f8f9fa;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #3c4043;
}

td {
  padding: 16px;
  border-top: 1px solid #e8eaed;
}

tr:hover {
  background-color: #f8f9fa;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #3c4043;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: #4285f4;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.alert-success {
  background-color: #e6f4ea;
  border: 1px solid #34a853;
  color: #0d652d;
}

.alert-error {
  background-color: #fce8e6;
  border: 1px solid #ea4335;
  color: #c5221f;
}

.alert-info {
  background-color: #e8f0fe;
  border: 1px solid #4285f4;
  color: #174ea6;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4285f4;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.footer {
  margin-top: 64px;
  text-align: center;
  color: #70757a;
  font-size: 14px;
}
