/* Vultr-Inspired Custom Styles for TAB.LAPRO */
/* Mobile-First Responsive Design */

:root {
    /* Vultr Color Palette */
    --vultr-primary: #007bff;
    --vultr-primary-dark: #0056b3;
    --vultr-secondary: #6c757d;
    --vultr-success: #28a745;
    --vultr-danger: #dc3545;
    --vultr-warning: #ffc107;
    --vultr-info: #17a2b8;
    --vultr-light: #f8f9fa;
    --vultr-dark: #212529;
    
    /* Advanced Colors */
    --vultr-purple: #6f42c1;
    --vultr-teal: #20c997;
    --vultr-orange: #fd7e14;
    --vultr-pink: #e83e8c;
    
    /* Gradients */
    --vultr-gradient-primary: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    --vultr-gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --vultr-gradient-success: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --vultr-gradient-dark: linear-gradient(135deg, #343a40 0%, #212529 100%);
    
    /* Shadows */
    --vultr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --vultr-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --vultr-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    --vultr-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --vultr-radius-sm: 0.375rem;
    --vultr-radius-md: 0.5rem;
    --vultr-radius-lg: 0.75rem;
    --vultr-radius-xl: 1rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #f7fafc;
}

/* Mobile-First Typography */
.vultr-heading-1 {
  font-size: 1.875rem; /* 30px */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.vultr-heading-2 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.vultr-heading-3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Responsive Typography */
@media (min-width: 640px) {
  .vultr-heading-1 {
    font-size: 2.25rem; /* 36px */
  }
  
  .vultr-heading-2 {
    font-size: 1.875rem; /* 30px */
  }
  
  .vultr-heading-3 {
    font-size: 1.5rem; /* 24px */
  }
}

@media (min-width: 1024px) {
  .vultr-heading-1 {
    font-size: 3rem; /* 48px */
  }
  
  .vultr-heading-2 {
    font-size: 2.25rem; /* 36px */
  }
}

/* Enhanced Cards */
.vultr-card {
  background: #ffffff;
  border-radius: var(--vultr-radius-lg);
  box-shadow: var(--vultr-shadow-md);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.vultr-card:hover {
  box-shadow: var(--vultr-shadow-lg);
  transform: translateY(-2px);
  border-color: #cbd5e0;
}

.vultr-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
  font-size: 1.125rem;
  color: #2d3748;
}

.vultr-card-body {
  padding: 1.5rem;
}

.vultr-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Mobile Responsive Cards */
@media (max-width: 639px) {
  .vultr-card-header,
  .vultr-card-body,
  .vultr-card-footer {
    padding: 1rem;
  }
}

/* Enhanced Buttons */
.vultr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--vultr-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.vultr-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.vultr-btn-primary {
  background: var(--vultr-gradient-primary);
  color: #ffffff;
  box-shadow: var(--vultr-shadow-sm);
}

.vultr-btn-primary:hover {
  background: var(--vultr-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--vultr-shadow-md);
}

.vultr-btn-secondary {
  background: #ffffff;
  color: var(--vultr-primary);
  border-color: var(--vultr-primary);
}

.vultr-btn-secondary:hover {
  background: var(--vultr-primary);
  color: #ffffff;
}

.vultr-btn-success {
  background: var(--vultr-gradient-success);
  color: #ffffff;
  box-shadow: var(--vultr-shadow-sm);
}

.vultr-btn-success:hover {
  background: #1e7e34;
  transform: translateY(-1px);
  box-shadow: var(--vultr-shadow-md);
}

.vultr-btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
  box-shadow: var(--vultr-shadow-sm);
}

.vultr-btn-danger:hover {
  background: #bd2130;
  transform: translateY(-1px);
  box-shadow: var(--vultr-shadow-md);
}

/* Mobile Button Adjustments */
@media (max-width: 639px) {
  .vultr-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    min-width: auto;
  }
  
  .vultr-btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .vultr-btn-full {
    width: 100%;
    justify-content: center;
  }
  
  .vultr-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .vultr-btn-group .vultr-btn {
    border-radius: var(--vultr-radius-md);
    width: 100%;
  }
}

@media (min-width: 640px) {
  .vultr-btn-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }
  
  .vultr-btn-group .vultr-btn {
    width: auto;
  }
}

/* Stats Cards - Vultr Style */
.vultr-stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--vultr-radius-lg);
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--vultr-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vultr-stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--vultr-gradient-primary);
}

.vultr-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vultr-shadow-lg);
}

.vultr-stats-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--vultr-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.vultr-stats-icon.primary {
  background: linear-gradient(135deg, #007bff20 0%, #6f42c120 100%);
  color: var(--vultr-primary);
}

.vultr-stats-icon.success {
  background: linear-gradient(135deg, #28a74520 0%, #20c99720 100%);
  color: var(--vultr-success);
}

.vultr-stats-icon.danger {
  background: linear-gradient(135deg, #dc354520 0%, #c8233320 100%);
  color: var(--vultr-danger);
}

.vultr-stats-icon.warning {
  background: linear-gradient(135deg, #ffc10720 0%, #fd7e1420 100%);
  color: var(--vultr-warning);
}

.vultr-stats-icon.purple {
  background: linear-gradient(135deg, #6f42c120 0%, #e83e8c20 100%);
  color: var(--vultr-purple);
}

.vultr-stats-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #1a202c;
  margin-bottom: 0.25rem;
}

.vultr-stats-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vultr-stats-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.vultr-stats-change.positive {
  color: var(--vultr-success);
}

.vultr-stats-change.negative {
  color: var(--vultr-danger);
}

/* Mobile Stats Card Adjustments */
@media (max-width: 639px) {
  .vultr-stats-card {
    padding: 1rem;
  }
  
  .vultr-stats-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .vultr-stats-value {
    font-size: 1.5rem;
  }
  
  .vultr-stats-label {
    font-size: 0.75rem;
  }
}

/* Responsive Tables */
.vultr-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--vultr-radius-lg);
  overflow: hidden;
  box-shadow: var(--vultr-shadow-sm);
}

.vultr-table thead {
  background: #f8fafc;
}

.vultr-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.vultr-table td {
  padding: 1rem;
  border-bottom: 1px solid #f7fafc;
  font-size: 0.875rem;
}

.vultr-table tbody tr {
  transition: background-color 0.2s;
}

.vultr-table tbody tr:hover {
  background: #f8fafc;
}

.vultr-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile Table Cards */
.vultr-mobile-card {
  display: none;
  background: #ffffff;
  border-radius: var(--vultr-radius-lg);
  box-shadow: var(--vultr-shadow-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s;
}

.vultr-mobile-card:hover {
  box-shadow: var(--vultr-shadow-md);
  transform: translateY(-1px);
}

.vultr-mobile-card-header {
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  color: #2d3748;
}

.vultr-mobile-card-body {
  padding: 1rem;
}

.vultr-mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f7fafc;
}

.vultr-mobile-card-row:last-child {
  border-bottom: none;
}

.vultr-mobile-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
}

.vultr-mobile-card-value {
  font-size: 0.875rem;
  color: #2d3748;
  text-align: right;
  word-break: break-word;
}

/* Badge Styles */
.vultr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vultr-badge.success {
  background: #dcfce7;
  color: #166534;
}

.vultr-badge.danger {
  background: #fef2f2;
  color: #dc2626;
}

.vultr-badge.warning {
  background: #fef3c7;
  color: #d97706;
}

.vultr-badge.info {
  background: #dbeafe;
  color: #2563eb;
}

.vultr-badge.primary {
  background: #dbeafe;
  color: #2563eb;
}

.vultr-badge.secondary {
  background: #f1f5f9;
  color: #64748b;
}

/* Animation Classes */
.vultr-pulse {
  animation: vultr-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes vultr-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.vultr-bounce {
  animation: vultr-bounce 1s infinite;
}

@keyframes vultr-bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Form Styles */
.vultr-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--vultr-radius-md);
  font-size: 0.875rem;
  transition: all 0.2s;
  background: #ffffff;
}

.vultr-input:focus {
  outline: none;
  border-color: var(--vultr-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.vultr-input-group {
  margin-bottom: 1rem;
}

.vultr-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1023px) {
  /* Hide desktop table on mobile/tablet */
  .vultr-table {
    display: none;
  }
  
  /* Show mobile cards */
  .vultr-mobile-card {
    display: block;
  }
}

@media (min-width: 1024px) {
  /* Show desktop table */
  .vultr-table {
    display: table;
  }
  
  /* Hide mobile cards */
  .vultr-mobile-card {
    display: none;
  }
}

/* Responsive Page Header */
@media (max-width: 639px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .admin-header-actions {
    width: 100%;
  }
  
  .admin-header-actions .vultr-btn {
    width: 100%;
  }
}

/* Quick Actions Grid */
.vultr-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .vultr-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vultr-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Search Bar Responsive */
.vultr-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .vultr-search-form {
    flex-direction: row;
    align-items: center;
  }
  
  .vultr-search-form .vultr-input {
    flex: 1;
  }
}

/* Modal Responsive */
@media (max-width: 639px) {
  .vultr-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .vultr-dark {
    background: #1a202c;
    color: #e2e8f0;
  }
  
  .vultr-dark .vultr-card {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .vultr-dark .vultr-stats-card {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  }
  
  .vultr-dark .vultr-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
}

/* Gradient Text */
.vultr-text-gradient {
  background: var(--vultr-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Pattern */
.vultr-bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,123,255,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

/* Glass Effect */
.vultr-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Utility Classes */
.vultr-hidden-mobile {
  display: none;
}

@media (min-width: 640px) {
  .vultr-hidden-mobile {
    display: block;
  }
  
  .vultr-visible-mobile {
    display: none;
  }
}

.vultr-visible-mobile {
  display: block;
}

/* Action Buttons Mobile */
.vultr-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .vultr-action-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.vultr-action-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  border-radius: var(--vultr-radius-sm);
  transition: all 0.2s;
}

.vultr-action-btn:hover {
  transform: translateY(-1px);
}

/* Responsive Padding */
.vultr-container-padding {
  padding: 1rem;
}

@media (min-width: 640px) {
  .vultr-container-padding {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .vultr-container-padding {
    padding: 2rem;
  }
}