/* ============================================
   Profile Page Specific Styles - Specifys.ai
   ============================================
   Styles specific to the profile.html page
*/

/* Pagination Styles */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #FF6B35;
    color: #FF6B35;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Search Input Styles */
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.sort-select {
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Workspace Delete Button */
.workspace-item {
    position: relative;
}

.workspace-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.workspace-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.workspace-delete-btn i {
    font-size: 12px;
}

/* Profile Container */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl, 3rem);
  margin-top: 100px;
}

/* ============================================
   Profile Dashboard - Modern Redesign
   ============================================ */

.profile-dashboard {
  background: #2a2a2a;
  border-radius: var(--border-radius-xl, 1.5rem);
  margin: 0 auto var(--spacing-2xl, 3rem) auto;
  padding: var(--spacing-xl, 2rem);
  box-shadow: var(--shadow-lg, 0 6px 16px rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-dashboard__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl, 2rem);
  flex-wrap: wrap;
}

/* Personal Information Section */
.profile-dashboard__personal {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg, 1.5rem);
  flex: 1;
  min-width: 0;
}

.profile-dashboard__avatar {
  flex-shrink: 0;
}

.profile-dashboard__avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full, 50%);
  background: var(--primary-color, #FF6B35);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all var(--transition-normal, 0.3s ease);
}

.profile-dashboard__avatar-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.profile-dashboard__avatar-initial {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-white, #ffffff);
  text-transform: uppercase;
}

.profile-dashboard__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
}

.profile-dashboard__name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-white, #ffffff);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dashboard__name:hover {
  color: var(--text-white, #ffffff);
  text-decoration: none;
  border-bottom: none;
}

.profile-dashboard__email {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dashboard__actions {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
  flex-wrap: wrap;
  align-items: center;
}

.profile-dashboard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs, 0.25rem);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  border: none;
  border-radius: var(--border-radius-md, 0.5rem);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium, 500);
  cursor: pointer;
  transition: all var(--transition-normal, 0.3s ease);
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-white, #ffffff);
}

.profile-dashboard__btn i {
  font-size: 0.875rem;
}

.profile-dashboard__btn--info {
  background: var(--success-color, #28a745);
}

.profile-dashboard__btn--info:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.profile-dashboard__btn--admin {
  background: var(--info-color, #17a2b8);
}

.profile-dashboard__btn--admin:hover {
  background: #138496;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.profile-dashboard__btn--logout {
  background: var(--danger-color, #dc3545);
}

.profile-dashboard__btn--logout:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Statistics Section */
.profile-dashboard__stats {
  display: flex;
  gap: var(--spacing-md, 1rem);
  flex-wrap: wrap;
  align-items: center;
}

.profile-dashboard__stat-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg, 1rem);
  padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal, 0.3s ease);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-dashboard__stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-dashboard__stat-card--highlight {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-dashboard__stat-icon {
  display: none;
}

.profile-dashboard__stat-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  min-width: 0;
}

.profile-dashboard__stat-number {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-color, #333);
  line-height: 1;
}

.profile-dashboard__stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-weight-medium, 500);
  white-space: nowrap;
}

/* Profile Specs Section */
.profile-specs-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.workspace-controls {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.sort-select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.pagination-container {
  margin-top: 20px;
  text-align: center;
}

.subscription-note-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.subscription-note-text {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

.upgrade-btn {
  max-width: 220px;
}

.spec-link-plain {
  cursor: default;
  text-decoration: none;
}

/* Legacy class support - keeping for backward compatibility */
.profile-header {
  /* Styles moved to .profile-dashboard */
}

.avatar-placeholder {
  /* Styles moved to .profile-dashboard__avatar-placeholder */
}

.profile-info {
  /* Styles moved to .profile-dashboard__info */
}

.profile-stats {
  /* Styles moved to .profile-dashboard__stats */
}

.stat-item {
  /* Styles moved to .profile-dashboard__stat-card */
}

.stat-number {
  /* Styles moved to .profile-dashboard__stat-number */
}

.stat-label {
  /* Styles moved to .profile-dashboard__stat-label */
}

/* Legacy button classes - keeping for backward compatibility */
.logout-btn-small {
  /* Styles moved to .profile-dashboard__btn--logout */
}

.personal-info-btn {
  /* Styles moved to .profile-dashboard__btn--info */
}

.admin-dashboard-btn {
  /* Styles moved to .profile-dashboard__btn--admin */
}

.profile-actions-buttons {
  /* Styles moved to .profile-dashboard__actions */
}

/* Panel Styles */
body .panel-header h2 {
  color: white;
}

body .info-section h3 {
  color: #bbb;
}

body .panel-action-btn:hover {
  color: white;
}

body #upgrade-row .panel-action-btn {
  color: white;
}

body #upgrade-row .panel-action-btn:hover {
  color: white;
}

/* Progress Item Icons - Using higher specificity */
body .progress-item.ready i,
body .progress-item.ready i.fa {
  color: #FF6B35;
}

body .progress-item.in-progress i,
body .progress-item.in-progress i.fa {
  color: #ffc107;
}

body .progress-item.pending i,
body .progress-item.pending i.fa {
  color: #6c757d;
}

body .progress-item.not-started i,
body .progress-item.not-started i.fa {
  color: #dc3545;
}

/* Button icon styles moved to assets/css/components/buttons.css */
/* .btn-icon.linked and .btn-icon i.fa.fa-edit are now in buttons.css */

body .panel-action-btn:hover {
  color: white;
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Workspace Item - Base styles should be in main-compiled.css */
/* These are overrides for profile page */
.workspace-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.workspace-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.workspace-item-header {
  margin-bottom: 1rem;
}

.workspace-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.workspace-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.workspace-item-rename-btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  color: #666;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.workspace-item-rename-btn:hover {
  color: #333;
  background: #f0f0f0;
  border-color: #ddd;
}
.rename-spec-spinner.hidden {
  display: none;
}
.rename-spec-save-text.hidden {
  display: none;
}

.workspace-item-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.workspace-item-date {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.5rem;
}

.workspace-progress {
  margin-top: 1rem;
}

.workspace-progress-title {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.workspace-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.workspace-item-dates {
  font-size: 0.8rem;
  color: #999;
}

.workspace-view-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color, #FF6B35);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace-view-btn:hover {
  background: var(--primary-hover, #FF8551);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.section-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Create App Button */
.create-app-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary-color, #6c757d);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-app-btn:hover {
  background: #555;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for profile dashboard */
@media (max-width: 968px) {
  .profile-dashboard__content {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-dashboard__personal {
    flex-wrap: wrap;
  }

  .profile-dashboard__stats {
    width: 100%;
    justify-content: space-between;
  }

  .profile-dashboard__stat-card {
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .profile-dashboard {
    padding: var(--spacing-lg, 1.5rem);
  }

  .profile-dashboard__personal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md, 1rem);
  }

  .profile-dashboard__info {
    width: 100%;
  }

  .profile-dashboard__name {
    font-size: 1.25rem;
  }

  .profile-dashboard__email {
    font-size: 0.875rem;
  }

  .profile-dashboard__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-dashboard__btn {
    flex: 1;
    min-width: 120px;
  }

  .profile-dashboard__stats {
    flex-direction: column;
    width: 100%;
  }

  .profile-dashboard__stat-card {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .profile-dashboard {
    padding: var(--spacing-md, 1rem);
    border-radius: var(--border-radius-lg, 1rem);
  }

  .profile-dashboard__avatar-placeholder {
    width: 56px;
    height: 56px;
  }

  .profile-dashboard__avatar-initial {
    font-size: 1.25rem;
  }

  .profile-dashboard__name {
    font-size: 1.125rem;
  }

  .profile-dashboard__email {
    font-size: 0.8rem;
  }

  .profile-dashboard__btn {
    padding: var(--spacing-xs, 0.25rem) var(--spacing-sm, 0.5rem);
    font-size: 0.8rem;
  }

  .profile-dashboard__btn span {
    display: none;
  }

  .profile-dashboard__stat-card {
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  }


  .profile-dashboard__stat-number {
    font-size: 1.5rem;
  }

  .profile-dashboard__stat-label {
    font-size: 0.7rem;
  }
}

/* ============================================
   Personal Info Side Panel Styles
   ============================================
   Styles for the side panel that opens when clicking "Personal Info"
*/

.personal-info-panel {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  display: none;
}

.personal-info-panel.active {
  display: block !important;
}

.panel-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

.panel-content {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 420px !important;
  height: 100% !important;
  background: #2a2a2a !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4) !important;
  animation: slideInRight 0.3s ease !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%) !important;
  }
  to {
    transform: translateX(0) !important;
  }
}

.panel-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 24px 24px 0 24px !important;
  border-bottom: 2px solid #444 !important;
  margin-bottom: 24px !important;
}

.panel-header h2 {
  margin: 0 !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: white !important;
}

.panel-header i {
  font-size: 1.5rem !important;
  color: white !important;
}

.panel-close {
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: #bbb !important;
  cursor: pointer !important;
  padding: 8px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.panel-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0 24px 24px 24px !important;
}

.info-section {
  margin-bottom: 32px !important;
}

.info-section h3 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #bbb !important;
}

.info-card {
  background: #333 !important;
  border-radius: 12px !important;
  padding: 20px !important;
}

/* Email Preferences Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #FF6B35;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.info-label-group {
  flex: 1;
}

.info-label-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #fff;
}

.info-description {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
}

.info-message {
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
}
  border: 1px solid #444 !important;
}

.info-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #444 !important;
}

.info-row:last-child {
  border-bottom: none !important;
}

.info-row label {
  font-weight: 500 !important;
  color: #bbb !important;
  font-size: 0.9rem !important;
}

.info-value {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 0.95rem !important;
  color: white !important;
  font-weight: 500 !important;
}

.edit-btn {
  background: none !important;
  border: none !important;
  color: #FF6B35 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.edit-btn:hover {
  background: rgba(255, 107, 53, 0.1) !important;
}

.plan-badge {
  background: #FF6B35 !important;
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.status-badge {
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.status-badge.active {
  background: #4a90e2 !important;
  color: white !important;
}

.status-badge.free {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #d1d5db !important;
}

.status-badge.expired {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.status-badge.cancelled {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.panel-action-btn {
  width: 100% !important;
  background: #FF6B35 !important;
  border: none !important;
  color: white !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.panel-action-btn:hover {
  background: #FF8551 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
  color: white !important;
}

.panel-action-btn.cancel-btn {
  background: #dc3545 !important;
}

.panel-action-btn.cancel-btn:hover {
  background: #c82333 !important;
}

.panel-action-btn.confirm-btn {
  background: #dc3545 !important;
}

.panel-action-btn.confirm-btn:hover {
  background: #c82333 !important;
}

.panel-action-btn i {
  font-size: 1rem !important;
}

.subscription-confirmation {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-top: 12px !important;
}

.subscription-confirmation-text {
  margin: 0 !important;
  color: #d1d5db !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

.subscription-confirmation-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.subscription-confirmation-actions .panel-action-btn {
  flex: 1 1 220px !important;
}

.subscription-confirmation-actions .link-button {
  flex: 1 1 160px !important;
}

.link-button {
  background: transparent !important;
  border: none !important;
  color: #FF6B35 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 8px 0 !important;
}

.link-button:hover {
  color: #FF8551 !important;
}

.subscription-message {
  margin-top: 12px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #d1d5db !important;
}

.subscription-message:empty {
  display: none !important;
}

.subscription-message.warning {
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fbbf24 !important;
}

.subscription-message.info {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #93c5fd !important;
}

.subscription-message.success {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #6ee7b7 !important;
}

.subscription-message.error {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
}

.subscription-note-row {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.subscription-note-text {
  font-size: 0.9rem !important;
  color: #888 !important;
  line-height: 1.5 !important;
}

/* Personal Info Button */
.personal-info-btn {
  background: #28a745 !important;
  border: none !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 24px !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  min-width: 140px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.personal-info-btn:hover {
  background: #218838 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* Responsive adjustments for panel */
@media (max-width: 768px) {
  .panel-content {
    max-width: 100% !important;
  }
  
  .personal-info-btn {
    min-width: 120px !important;
    padding: 7px 20px !important;
    font-size: 0.8rem !important;
  }
  
  .panel-header {
    padding: 20px 20px 0 20px !important;
  }
  
  .panel-body {
    padding: 0 20px 20px 20px !important;
  }
}

@media (max-width: 480px) {
  .panel-header {
    padding: 16px 16px 0 16px !important;
  }
  
  .panel-body {
    padding: 0 16px 16px 16px !important;
  }
  
  .info-card {
    padding: 16px !important;
  }
}

/* ============================================
   Saved Tools - Compact Square Cards
   ============================================ */

/* Grid layout for saved tools - small squares */
#tools-container.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Compact saved tool card */
.saved-tool-card {
  position: relative;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.saved-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #FF6B35;
}

/* Date at the top */
.saved-tool-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Tool name */
.saved-tool-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  flex: 1;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Link to use tool */
.saved-tool-link {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  background: #FF6B35;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s ease;
  margin-top: auto;
}

.saved-tool-link:hover {
  background: #FF8551;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.saved-tool-link.disabled {
  color: #999;
  background: #f5f5f5;
  cursor: not-allowed;
  font-weight: normal;
}

/* Remove button */
.saved-tool-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
  font-size: 0.7rem;
  padding: 0;
}

.saved-tool-card:hover .saved-tool-remove {
  opacity: 1;
}

.saved-tool-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #tools-container.apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .saved-tool-card {
    min-height: 130px;
    padding: 0.6rem;
  }
  
  .saved-tool-date {
    font-size: 0.8rem;
  }
  
  .saved-tool-name {
    font-size: 0.95rem;
  }
  
  .saved-tool-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
  }
}

@media (max-width: 480px) {
  #tools-container.apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  
  .saved-tool-card {
    min-height: 120px;
    padding: 0.5rem;
  }
  
  .saved-tool-date {
    font-size: 0.75rem;
  }
  
  .saved-tool-name {
    font-size: 0.9rem;
  }
  
  .saved-tool-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}
