article:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

a[style*="linear-gradient"]:hover {
  transform: scale(1.05);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a73e8;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 999;
  font-size: 24px;
  border: none;
  outline: none;
}

.back-to-top:hover {
  background: #1557b0;
  transform: translateY(-3px);
}

.back-to-top.show {
  display: flex;
}

.ui-style-0 { --primary-color: #1a73e8; --secondary-color: #34a853; }
.ui-style-1 { --primary-color: #ea4335; --secondary-color: #fbbc04; }
.ui-style-2 { --primary-color: #9c27b0; --secondary-color: #e91e63; }
.ui-style-3 { --primary-color: #00bcd4; --secondary-color: #009688; }
.ui-style-4 { --primary-color: #ff9800; --secondary-color: #ff5722; }
.ui-style-5 { --primary-color: #3f51b5; --secondary-color: #2196f3; }
.ui-style-6 { --primary-color: #4caf50; --secondary-color: #8bc34a; }
.ui-style-7 { --primary-color: #f44336; --secondary-color: #e91e63; }
.ui-style-8 { --primary-color: #673ab7; --secondary-color: #9c27b0; }
.ui-style-9 { --primary-color: #ff5722; --secondary-color: #ff9800; }
.ui-style-10 { --primary-color: #607d8b; --secondary-color: #9e9e9e; }
.ui-style-11 { --primary-color: #009688; --secondary-color: #00bcd4; }
.ui-style-12 { --primary-color: #795548; --secondary-color: #8d6e63; }
.ui-style-13 { --primary-color: #e91e63; --secondary-color: #f06292; }
.ui-style-14 { --primary-color: #00acc1; --secondary-color: #26c6da; }
.ui-style-15 { --primary-color: #5e35b1; --secondary-color: #7e57c2; }

@media (max-width: 768px) {
  main {
    padding: 0 15px !important;
    margin: 20px auto !important;
  }

  section {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px !important;
  }

  article {
    padding: 15px !important;
  }

  section {
    padding: 15px !important;
  }
}

.expand-toggle {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  margin-top: 10px;
  display: inline-block;
}

.expand-toggle:hover {
  color: #1557b0;
}

.collapsed {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, #fff);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

article, section {
  animation: fadeIn 0.5s ease-out;
}

img {
  max-width: 100%;
  height: auto;
}

code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #e91e63;
}

pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid #1a73e8;
  padding-left: 20px;
  margin: 20px 0;
  color: #666;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

table th {
  background: #f5f5f5;
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 30px 0;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 5px;
}

.badge-primary {
  background: #1a73e8;
  color: #fff;
}

.badge-success {
  background: #34a853;
  color: #fff;
}

.badge-warning {
  background: #fbbc04;
  color: #333;
}

.badge-danger {
  background: #ea4335;
  color: #fff;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a73e8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::selection {
  background: #1a73e8;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  scroll-behavior: smooth;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}

.p-30 {
  padding: 30px;
}
