* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #000000 0%, #ffffff 100%);
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.header {
  text-align: center;
  margin-bottom: 40px;
}
.header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 768px) {
  .header .header-content {
    flex-direction: column;
    text-align: center;
  }
}
.header .header-main {
  flex: 1;
}
.header h1 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.header h1 i {
  margin-right: 15px;
}
@media (max-width: 768px) {
  .header h1 {
    font-size: 2em;
  }
}
.header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  font-weight: 300;
}
.main-navigation {
  margin-top: 20px;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .main-navigation {
    padding: 0 10px;
  }
}
.main-navigation .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .main-navigation .nav-links {
    gap: 5px;
  }
}
.main-navigation .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
  .main-navigation .nav-link {
    padding: 10px 15px;
    font-size: 13px;
  }
  .main-navigation .nav-link span {
    display: none;
  }
}
@media (max-width: 480px) {
  .main-navigation .nav-link {
    padding: 8px 12px;
  }
  .main-navigation .nav-link span {
    display: inline;
  }
  .main-navigation .nav-link i {
    display: none;
  }
}
.main-navigation .nav-link i {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}
.main-navigation .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.main-navigation .nav-link:hover i {
  color: white;
}
.main-navigation .nav-link.active {
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  border-color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.main-navigation .nav-link.active i {
  color: #3498db;
}
.main-navigation .nav-link.active:hover {
  background: white;
  transform: translateY(-1px);
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 500;
}
.user-info i {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: rgba(231, 76, 60, 0.8);
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}
.logout-btn:hover {
  background: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.logout-btn i {
  font-size: 1em;
}
.main-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 40px;
}
.analytics-page .qr-info-header {
  background: #ecf0f1;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .analytics-page .qr-info-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
.analytics-page .qr-info-header .qr-info-main {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .analytics-page .qr-info-header .qr-info-main {
    flex-direction: column;
  }
}
.analytics-page .qr-info-header .qr-preview-large img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.analytics-page .qr-info-header .qr-details-header h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.8em;
}
.analytics-page .qr-info-header .qr-details-header .qr-urls {
  margin-bottom: 15px;
}
.analytics-page .qr-info-header .qr-details-header .qr-urls .url-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}
.analytics-page .qr-info-header .qr-details-header .qr-urls .url-item strong {
  min-width: 120px;
  color: #2c3e50;
  font-size: 14px;
}
.analytics-page .qr-info-header .qr-details-header .qr-urls .url-item .short-link,
.analytics-page .qr-info-header .qr-details-header .qr-urls .url-item .target-url {
  color: #3498db;
  font-weight: 500;
  word-break: break-all;
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .analytics-page .qr-info-header .qr-details-header .qr-status-header {
    flex-direction: column;
    gap: 10px;
  }
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-active,
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-inactive {
  font-weight: 600;
  font-size: 14px;
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-active i,
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-inactive i {
  font-size: 8px;
  margin-right: 5px;
  vertical-align: middle;
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-active {
  color: #2ecc71;
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header .status-inactive {
  color: #e74c3c;
}
.analytics-page .qr-info-header .qr-details-header .qr-status-header .created-date {
  color: #507192;
  font-size: 14px;
}
.analytics-page .qr-info-header .qr-actions-header {
  display: flex;
  gap: 10px;
}
@media (max-width: 768px) {
  .analytics-page .qr-info-header .qr-actions-header {
    flex-direction: column;
    width: 100%;
  }
}
.analytics-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.analytics-page .stats-grid .stat-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}
.analytics-page .stats-grid .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.analytics-page .stats-grid .stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e1f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.analytics-page .stats-grid .stat-card .stat-icon i {
  font-size: 1.5em;
  color: #3498db;
}
.analytics-page .stats-grid .stat-card .stat-content .stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
}
.analytics-page .stats-grid .stat-card .stat-content .stat-label {
  font-size: 14px;
  color: #507192;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.analytics-page .charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 1024px) {
  .analytics-page .charts-section {
    grid-template-columns: 1fr;
  }
}
.analytics-page .charts-section .chart-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.analytics-page .charts-section .chart-card .chart-header {
  margin-bottom: 20px;
}
.analytics-page .charts-section .chart-card .chart-header h3 {
  color: #2c3e50;
  font-size: 1.2em;
}
.analytics-page .charts-section .chart-card .chart-header h3 i {
  margin-right: 10px;
  color: #3498db;
}
.analytics-page .charts-section .chart-card .chart-container {
  position: relative;
  height: 300px;
}
.analytics-page .analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.analytics-page .analytics-grid .analytics-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.analytics-page .analytics-grid .analytics-card .analytics-header {
  background: #ecf0f1;
  padding: 15px 20px;
  border-bottom: 1px solid #cfd9db;
}
.analytics-page .analytics-grid .analytics-card .analytics-header h3 {
  color: #2c3e50;
  font-size: 1.1em;
}
.analytics-page .analytics-grid .analytics-card .analytics-header h3 i {
  margin-right: 8px;
  color: #3498db;
}
.analytics-page .analytics-grid .analytics-card .analytics-content {
  padding: 20px;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-section h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1em;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .location-item,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .location-item,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .location-item:last-child,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .location-item:last-child,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item:last-child,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item:last-child {
  border-bottom: none;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .location-item .location-name,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .location-item .location-name,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .location-name,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .location-name,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .location-item .browser-info,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .location-item .browser-info,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .browser-info,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .browser-info {
  font-weight: 500;
  color: #2c3e50;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .location-item .location-count,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .location-item .location-count,
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .location-count,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .location-count {
  background: #3498db;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item {
  flex-direction: column;
  align-items: stretch;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .browser-info,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .browser-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .browser-info .browser-count,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .browser-info .browser-count {
  color: #507192;
  font-size: 14px;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .browser-bar,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .browser-bar {
  height: 6px;
  background: #ecf0f1;
  border-radius: 3px;
  overflow: hidden;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .location-list .browser-item .browser-bar .browser-progress,
.analytics-page .analytics-grid .analytics-card .analytics-content .browser-list .browser-item .browser-bar .browser-progress {
  height: 100%;
  background: #3498db;
  transition: width 0.5s ease;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .device-chart {
  position: relative;
  height: 200px;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .empty-analytics {
  text-align: center;
  padding: 40px 20px;
  color: #698aac;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .empty-analytics i {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
  color: #ecf0f1;
}
.analytics-page .analytics-grid .analytics-card .analytics-content .empty-analytics p {
  margin: 0;
}
.analytics-page .clicks-table-section .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.analytics-page .clicks-table-section .table-header h3 {
  color: #2c3e50;
}
.analytics-page .clicks-table-section .table-header h3 i {
  margin-right: 10px;
  color: #3498db;
}
.analytics-page .clicks-table-section .table-responsive {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  overflow-x: auto;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table thead {
  background: #ecf0f1;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table thead th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #cfd9db;
  white-space: nowrap;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr {
  transition: all 0.3s ease;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr:hover {
  background: #f5f7f7;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr:nth-child(even) {
  background: #fbfcfc;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td {
  padding: 12px;
  border-bottom: 1px solid #ecf0f1;
  vertical-align: middle;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.timestamp {
  font-weight: 500;
  color: #2c3e50;
  white-space: nowrap;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.ip-address {
  font-family: 'Courier New', monospace;
  color: #3498db;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.device i,
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.browser i {
  margin-right: 5px;
  width: 16px;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.location i {
  margin-right: 5px;
  color: #f39c12;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.location .unknown {
  color: #698aac;
  font-style: italic;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.referer {
  max-width: 200px;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.referer a {
  color: #3498db;
  text-decoration: none;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.referer a:hover {
  text-decoration: underline;
}
.analytics-page .clicks-table-section .table-responsive .clicks-table tbody tr td.referer .direct {
  color: #698aac;
  font-style: italic;
}
.qr-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #ecf0f1;
}
@media (max-width: 768px) {
  .qr-tabs {
    flex-direction: column;
  }
}
.tab-btn {
  padding: 15px 25px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tab-btn:hover {
  background: #ecf0f1;
  color: #3498db;
}
.tab-btn.active {
  color: #3498db;
  border-bottom-color: #3498db;
  background: #ecf0f1;
}
.tab-btn i {
  font-size: 1.2em;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.qr-generator {
  margin: 0 auto 60px;
}
.qr-form .form-group {
  margin-bottom: 20px;
}
.qr-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}
.qr-form .form-group textarea,
.qr-form .form-group input[type="text"],
.qr-form .form-group input[type="url"],
.qr-form .form-group input[type="datetime-local"] {
  width: 100%;
  min-height: 45px;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}
.qr-form .form-group textarea:focus,
.qr-form .form-group input[type="text"]:focus,
.qr-form .form-group input[type="url"]:focus,
.qr-form .form-group input[type="datetime-local"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.qr-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.qr-form .form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.qr-form .form-group select:focus {
  outline: none;
  border-color: #3498db;
}
.qr-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .qr-form .form-row {
    grid-template-columns: 1fr;
  }
}
.qr-form .char-counter,
.qr-form .help-text {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 14px;
}
.qr-form .char-counter i,
.qr-form .help-text i {
  margin-right: 5px;
  color: #3498db;
}
.logo-upload-section .logo-upload-area {
  position: relative;
  min-height: 120px;
  border: 2px dashed #ecf0f1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.logo-upload-section .logo-upload-area:hover {
  border-color: #3498db;
  background: #f7fbfe;
}
.logo-upload-section .upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #507192;
}
.logo-upload-section .upload-placeholder i {
  font-size: 2em;
  margin-bottom: 10px;
  color: #3498db;
}
.logo-upload-section .upload-placeholder p {
  margin: 0;
  font-weight: 600;
  margin-bottom: 5px;
}
.logo-upload-section .upload-placeholder small {
  color: #8aa4be;
}
.logo-upload-section .upload-placeholder:hover {
  color: #3498db;
}
.logo-upload-section .logo-preview {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecf0f1;
}
.logo-upload-section .logo-preview img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-upload-section .logo-preview .remove-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}
.logo-upload-section .logo-preview .remove-logo:hover {
  background: #d62c1a;
}
.logo-settings {
  margin-top: 15px;
  padding: 15px;
  background: #f5f7f7;
  border-radius: 8px;
  border-left: 4px solid #2ecc71;
}
.logo-settings .radio-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
@media (max-width: 480px) {
  .logo-settings .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}
.logo-settings .radio-group .radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.logo-settings .radio-group .radio-option:hover {
  background: #fbfcfc;
}
.logo-settings .radio-group .radio-option input[type="radio"] {
  display: none;
}
.logo-settings .radio-group .radio-option input[type="radio"]:checked + .radio-custom {
  background: #2ecc71;
  border-color: #2ecc71;
}
.logo-settings .radio-group .radio-option input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
}
.logo-settings .radio-group .radio-option .radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #8aa4be;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}
.logo-settings .radio-group .radio-option .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}
.logo-settings .radio-group .radio-option i {
  color: #2ecc71;
  font-size: 18px;
}
.logo-settings .logo-size-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.logo-settings .logo-size-control input[type="range"] {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #fbfcfc;
  outline: none;
  -webkit-appearance: none;
}
.logo-settings .logo-size-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2ecc71;
  cursor: pointer;
  transition: all 0.3s ease;
}
.logo-settings .logo-size-control input[type="range"]::-webkit-slider-thumb:hover {
  background: #25a25a;
  transform: scale(1.1);
}
.logo-settings .logo-size-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2ecc71;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.logo-settings .logo-size-control input[type="range"]::-moz-range-thumb:hover {
  background: #25a25a;
  transform: scale(1.1);
}
.logo-settings .logo-size-control .logo-size-display {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: #2ecc71;
  font-size: 16px;
}
.logo-settings .logo-background-setting {
  margin: 15px 0;
}
.logo-settings .logo-background-setting .checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
}
.logo-settings .logo-background-setting .checkbox-option input[type="checkbox"] {
  display: none;
}
.logo-settings .logo-background-setting .checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
  background: #2ecc71;
  border-color: #2ecc71;
}
.logo-settings .logo-background-setting .checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
  opacity: 1;
}
.logo-settings .logo-background-setting .checkbox-option .checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #8aa4be;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}
.logo-settings .logo-background-setting .checkbox-option .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
}
.logo-settings .logo-background-setting .checkbox-option i {
  color: #2ecc71;
  font-size: 16px;
}
.logo-settings .logo-background-options {
  margin-left: 30px;
  padding: 10px 0;
  border-left: 2px solid #7ee2a8;
  padding-left: 15px;
}
.logo-settings .logo-background-options.hidden {
  display: none;
}
.white-field-option {
  margin: 15px 0;
  padding: 15px;
  background: #e6f9ee;
  border-radius: 8px;
  border: 2px solid #a8ebc4;
}
.white-field-option .checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
}
.white-field-option .checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  z-index: 10;
  position: relative;
}
.white-field-option .checkbox-option .checkbox-custom {
  display: none;
}
.white-field-option .checkbox-option i {
  color: #2ecc71;
  font-size: 16px;
  margin-left: 5px;
}
.white-field-option .checkbox-option:hover {
  background: #fbfefc;
  border-radius: 4px;
  padding: 5px;
  margin: -5px;
}
.logo-compatibility-warning {
  background: #fdedd4;
  color: #976008;
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-compatibility-warning i {
  font-size: 1.2em;
  color: #f39c12;
}
.logo-compatibility-warning span {
  font-size: 14px;
}
.qr-info {
  background: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.qr-info .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.qr-info .info-item:last-child {
  margin-bottom: 0;
}
.qr-info .info-item strong {
  min-width: 120px;
  color: #2c3e50;
}
.qr-info .info-item span {
  flex: 1;
  word-break: break-all;
}
.copy-btn,
.edit-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}
.copy-btn:hover,
.edit-btn:hover {
  background: #217dbb;
}
.edit-btn {
  background: #f39c12;
  margin-left: 5px;
}
.edit-btn:hover {
  background: #c87f0a;
}
.filters-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 8px;
}
.filters-form .filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
}
@media (max-width: 1024px) {
  .filters-form .filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .filters-form .filter-row {
    grid-template-columns: 1fr;
  }
}
.filters-form .filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}
.filters-form .filter-group input,
.filters-form .filter-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.filters-form .filter-group input:focus,
.filters-form .filter-group select:focus {
  outline: none;
  border-color: #3498db;
}
.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bulk-actions .btn-secondary,
.bulk-actions .btn-warning,
.bulk-actions .btn-danger,
.bulk-actions .btn-info {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bulk-actions .btn-secondary:disabled,
.bulk-actions .btn-warning:disabled,
.bulk-actions .btn-danger:disabled,
.bulk-actions .btn-info:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bulk-actions .btn-secondary {
  background: #2ecc71;
  color: white;
}
.bulk-actions .btn-secondary:hover:not(:disabled) {
  background: #25a25a;
}
.bulk-actions .btn-warning {
  background: #f39c12;
  color: white;
}
.bulk-actions .btn-warning:hover:not(:disabled) {
  background: #c87f0a;
}
.bulk-actions .btn-danger {
  background: #e74c3c;
  color: white;
}
.bulk-actions .btn-danger:hover:not(:disabled) {
  background: #d62c1a;
}
.bulk-actions .btn-info {
  background: #3498db;
  color: white;
  text-decoration: none;
}
.bulk-actions .btn-info:hover {
  background: #217dbb;
}
.dynamic-qr-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dynamic-qr-item {
  display: flex;
  background: white;
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
.dynamic-qr-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.qr-checkbox {
  padding: 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ecf0f1;
}
.qr-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.qr-info-detailed {
  flex: 1;
  padding: 20px;
}
.qr-info-detailed .qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.qr-info-detailed .qr-header h3 {
  color: #2c3e50;
  font-size: 1.3em;
  margin: 0;
}
.qr-info-detailed .qr-status .status-active {
  color: #2ecc71;
  font-weight: 600;
  font-size: 14px;
}
.qr-info-detailed .qr-status .status-active i {
  margin-right: 5px;
  font-size: 8px;
  vertical-align: middle;
}
.qr-info-detailed .qr-status .status-inactive {
  color: #e74c3c;
  font-weight: 600;
  font-size: 14px;
}
.qr-info-detailed .qr-status .status-inactive i {
  margin-right: 5px;
  font-size: 8px;
  vertical-align: middle;
}
.qr-info-detailed .qr-details {
  margin-bottom: 15px;
}
.qr-info-detailed .qr-details .detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.qr-info-detailed .qr-details .detail-item strong {
  min-width: 120px;
  color: #2c3e50;
  font-size: 14px;
}
.qr-info-detailed .qr-details .detail-item .short-link,
.qr-info-detailed .qr-details .detail-item .target-url {
  flex: 1;
  word-break: break-all;
  font-size: 14px;
  color: #3498db;
}
.qr-info-detailed .qr-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.qr-info-detailed .qr-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ecf0f1;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: #2c3e50;
}
.qr-info-detailed .qr-stats .stat-item i {
  color: #3498db;
}
.qr-info-detailed .qr-actions-detailed {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-warning-small,
.btn-danger-small {
  background: #f39c12;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-warning-small:hover,
.btn-danger-small:hover {
  background: #c87f0a;
}
.btn-danger-small {
  background: #e74c3c;
}
.btn-danger-small:hover {
  background: #d62c1a;
}
.stats-section {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}
@media (max-width: 768px) {
  .stats-section {
    flex-direction: column;
    gap: 15px;
  }
}
.stats-item {
  text-align: center;
  padding: 20px;
  background: #ecf0f1;
  border-radius: 8px;
  min-width: 120px;
}
.stats-item .stats-number {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #3498db;
}
.stats-item .stats-label {
  font-size: 14px;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-generate,
.btn-download,
.btn-new,
.btn-download-small,
.btn-filter,
.btn-clear,
.btn-info-small,
.btn-manage,
.btn-primary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-generate i,
.btn-download i,
.btn-new i,
.btn-download-small i,
.btn-filter i,
.btn-clear i,
.btn-info-small i,
.btn-manage i,
.btn-primary i {
  margin-right: 8px;
}
.btn-generate,
.btn-primary {
  background: #3498db;
  color: white;
  width: 100%;
  margin-top: 20px;
}
.btn-generate:hover,
.btn-primary:hover {
  background: #217dbb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.btn-primary {
  width: auto;
  margin-top: 0;
}
.btn-download {
  background: #2ecc71;
  color: white;
}
.btn-download:hover {
  background: #25a25a;
}
.btn-new {
  background: #f39c12;
  color: white;
  margin-left: 10px;
}
.btn-new:hover {
  background: #c87f0a;
}
.btn-manage {
  background: #34495e;
  color: white;
  margin-left: 10px;
}
.btn-manage:hover {
  background: #222f3d;
}
.btn-download-small,
.btn-info-small {
  background: #2ecc71;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  margin-right: 8px;
}
.btn-download-small:hover,
.btn-info-small:hover {
  background: #25a25a;
}
.btn-info-small {
  background: #3498db;
}
.btn-info-small:hover {
  background: #217dbb;
}
.btn-filter {
  background: #3498db;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  margin-right: 10px;
}
.btn-filter:hover {
  background: #217dbb;
}
.btn-clear,
.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
  padding: 10px 20px;
  font-size: 14px;
}
.btn-clear:hover,
.btn-secondary:hover {
  background: #cfd9db;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
  flex-wrap: wrap;
}
.page-btn,
.page-number {
  padding: 10px 15px;
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
}
.page-btn:hover,
.page-number:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}
.page-current {
  padding: 10px 15px;
  background: #3498db;
  color: white;
  border-radius: 8px;
  font-weight: bold;
}
.page-numbers {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideIn 0.3s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  margin: 0;
  color: #2c3e50;
}
.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #2c3e50;
}
.close:hover {
  color: #e74c3c;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.qr-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .qr-detail {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.qr-detail-preview img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.qr-detail-info p {
  margin-bottom: 10px;
}
.qr-detail-info p strong {
  color: #2c3e50;
}
.result-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #ecf0f1;
  border-radius: 8px;
}
.qr-preview img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.qr-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.loading {
  text-align: center;
  padding: 40px;
  color: #3498db;
}
.loading i {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
}
.loading p {
  font-weight: 600;
}
.error-message {
  background: #fdf3f2;
  color: #e74c3c;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  margin-top: 20px;
}
.history-grid {
  display: grid;
  gap: 20px;
}
.history-item {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.qr-preview-small {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-preview-small img {
  max-width: 100px;
  max-height: 100px;
}
.qr-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.qr-text {
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
  word-break: break-word;
}
.qr-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.qr-meta span {
  background: #ecf0f1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #34495e;
}
.qr-meta span.downloads {
  background: #2ecc71;
  color: white;
}
.qr-meta span.has-logo {
  background: #f39c12;
  color: white;
}
.qr-actions {
  align-self: flex-start;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #507192;
}
.empty-state i {
  font-size: 4em;
  margin-bottom: 20px;
  display: block;
  color: #ecf0f1;
}
.empty-state h2,
.empty-state h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}
.empty-state p {
  margin-bottom: 30px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .main-content {
    padding: 20px;
  }
  .history-item,
  .dynamic-qr-item {
    flex-direction: column;
  }
  .qr-preview-small {
    width: 100%;
    height: 120px;
  }
  .qr-meta {
    justify-content: center;
  }
  .qr-actions,
  .qr-actions-detailed {
    justify-content: center;
  }
  .user-menu {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }
  .qr-checkbox {
    border-right: none;
    border-bottom: 1px solid #ecf0f1;
    padding: 15px;
    justify-content: center;
  }
  .logo-upload-area {
    min-height: 100px;
  }
  .logo-upload-area .upload-placeholder {
    height: 100px;
  }
  .logo-upload-area .logo-preview {
    height: 100px;
  }
  .logo-upload-area .logo-preview img {
    max-width: 80px;
    max-height: 80px;
  }
}
/* QR код плейсхолдер для истории */
.qr-placeholder {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}
.qr-placeholder i {
  font-size: 24px;
}
