/* Secure FTP Web Application - Main Stylesheet */
/* TwiStar Systems Color Scheme */

/*
 * CUSTOMIZATION GUIDE
 * -------------------
 * To customize the application's appearance, modify the CSS variables below.
 * These variables control colors, spacing, shadows, and other design elements
 * throughout the entire application.
 * 
 * Color Variables:
 * - --color-primary: Main brand color (purple)
 * - --color-secondary: Secondary brand color (light purple)
 * - --color-dark: Background color (dark blue)
 * - --color-accent: Accent color (blue)
 * - --color-danger: Error/danger color (red)
 * - --color-gold: Success/highlight color (gold)
 * - --color-text: Primary text color (light)
 * - --color-muted: Secondary text color (semi-transparent)
 * - --color-border: Border color (semi-transparent purple)
 */

:root {
  --color-primary: #9600E1;
  --color-secondary: #CC9CDF;
  --color-dark: #000030;
  --color-accent: #0000C8;
  --color-danger: #C80000;
  --color-gold: #FFD700;
  --color-text: #f5f5ff;
  --color-muted: #b9b9d695;
  --color-border: rgba(204, 156, 223, 0.35);
  
  /* Gradient combinations */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(150, 0, 225, 0.1) 0%, rgba(0, 0, 200, 0.1) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(150, 0, 225, 0.1);
  --shadow-md: 0 4px 16px rgba(150, 0, 225, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 48, 0.3);
  --shadow-accent: 0 4px 20px rgba(150, 0, 225, 0.4);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: var(--color-dark);
  background-image: var(--gradient-secondary);
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Login Page Styles */
.login-container {
  background: rgba(0, 0, 48, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  padding: var(--spacing-xl);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.logo h1 {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.5px;
}

.logo p {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-border);
  gap: var(--spacing-sm);
}

.tab {
  flex: 1;
  text-align: center;
  padding: var(--spacing-sm);
  cursor: pointer;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab:hover {
  color: var(--color-text);
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(150, 0, 225, 0.1);
}

input::placeholder {
  color: var(--color-muted);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--color-text);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary {
  background: var(--gradient-primary);
  width: 100%;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-mini {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  cursor: pointer;
  background: rgba(150, 0, 225, 0.3);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  vertical-align: middle;
}

.btn-mini:hover {
  background: rgba(150, 0, 225, 0.5);
  transform: translateY(-1px);
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--spacing-md);
}

.header h1 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-left: auto;
}

.header-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 0;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: none;
  transform: none;
}

.header-btn .icon {
  font-size: 1.1rem;
}

.header-btn.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.header-btn.btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: white;
  line-height: 1.3;
  border-radius: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-info strong {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.user-info small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.user-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.user-settings-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: none;
}

.user-settings-btn .icon {
  font-size: 1.2rem;
  line-height: 1;
}

.user-badge {
  background: var(--gradient-subtle);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.user-role {
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cards */
.card {
  background: rgba(0, 0, 48, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.card-header h2 {
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 600;
}

.card-body {
  color: var(--color-text);
}

/* Quota Display */
.quota-info {
  margin-bottom: var(--spacing-lg);
}

.quota-bar {
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  height: 25px;
  overflow: hidden;
  position: relative;
}

.quota-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--spacing-sm);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

.quota-bar-fill.warning {
  background: linear-gradient(135deg, var(--color-gold) 0%, #ff8c00 100%);
}

.quota-bar-fill.danger {
  background: linear-gradient(135deg, var(--color-danger) 0%, #ff4444 100%);
}

.quota-text {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-top: var(--spacing-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(150, 0, 225, 0.1);
  border-bottom: 2px solid var(--color-border);
}

th {
  padding: var(--spacing-sm);
  text-align: left;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

tr:hover td {
  background: rgba(150, 0, 225, 0.05);
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-error {
  background: rgba(200, 0, 0, 0.1);
  border-left-color: var(--color-danger);
  color: #ff6b6b;
}

.alert-success {
  background: rgba(0, 200, 0, 0.1);
  border-left-color: #00c800;
  color: #69db7c;
}

.alert-warning {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: var(--color-gold);
  color: var(--color-gold);
}

.alert-info {
  background: rgba(0, 0, 200, 0.1);
  border-left-color: var(--color-accent);
  color: #74c0fc;
}

/* Hash Display */
.hash-display {
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--color-secondary);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: var(--spacing-xs);
  accent-color: var(--color-primary);
}

/* File Upload */
input[type="file"] {
  padding: var(--spacing-sm);
  background: rgba(0, 0, 48, 0.5);
  border: 2px dashed var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: var(--color-primary);
  background: rgba(150, 0, 225, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: var(--spacing-sm);
  }
  
  .header {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .user-info {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem;
  }
  
  .user-details {
    align-items: flex-start;
  }
  
  .user-details strong {
    font-size: 0.85rem;
  }
  
  .user-details small {
    font-size: 0.75rem;
  }
  
  .user-settings-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0.4rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: var(--spacing-xs);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-muted {
  color: var(--color-muted);
}

.text-danger {
  color: var(--color-danger);
}

.text-gold {
  color: var(--color-gold);
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 48, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: var(--spacing-lg) auto;
}

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

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--color-primary);
  color: white;
}

.badge-success {
  background: #00c800;
  color: white;
}

.badge-danger {
  background: var(--color-danger);
  color: white;
}

.badge-warning {
  background: var(--color-gold);
  color: var(--color-dark);
}

.badge-info {
  background: var(--color-accent);
  color: white;
}

/* Common Page Styles - Shared across all pages */
/* Header variations for different pages */
.header-content.admin-header {
  max-width: 1400px;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: var(--spacing-sm);
}

.nav-link {
  background: rgba(150, 0, 225, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(150, 0, 225, 0.35);
  border-color: var(--color-primary);
}

/* Container variations */
.container {
  margin: var(--spacing-lg) auto;
  padding: 0 var(--spacing-md);
}

.container.admin-container {
  max-width: 1600px;
}

/* Upload form */
.upload-form {
  display: grid;
  gap: var(--spacing-md);
}

/* Form grid layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Checkbox groups */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

/* File hash display */
.file-hash {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--color-secondary);
  word-break: break-all;
}

.hash-short {
  display: inline-block;
  margin-right: 0.25rem;
}

/* Actions container */
.actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* Admin link in header */
.admin-link {
  background: rgba(150, 0, 225, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-link:hover {
  background: rgba(150, 0, 225, 0.35);
  border-color: var(--color-primary);
}

/* Hash info display */
.hash-info {
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
  color: var(--color-text);
}

/* Code display */
.code-display {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  color: var(--color-secondary);
}

/* Login page specific styles - Dark mode consistent */
.login-container.white-bg {
  /* Use same dark styling as default login-container */
  background: rgba(0, 0, 48, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  padding: var(--spacing-xl);
}

/* Body variant for centered layout (login page) */
body.login-page {
  background: var(--color-dark);
  background-image: var(--gradient-secondary);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

/* Header variant for simple pages */
.header.simple-gradient {
  /* Use same gradient as main header */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: 0 var(--spacing-lg);
  min-height: 60px;
  box-shadow: var(--shadow-md);
}

/* Container variant for simple pages */
body.simple-page {
  /* Inherit dark theme from body */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Settings Page Styles */
.settings-section {
  margin-bottom: var(--spacing-xl);
}

.settings-section h3 {
  color: var(--color-text);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.info-grid {
  display: grid;
  gap: var(--spacing-md);
}

.info-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(150, 0, 225, 0.05);
  border: 1px solid var(--color-border);
}

.info-item label {
  color: var(--color-muted);
  font-weight: 600;
  margin: 0;
}

.info-item span {
  color: var(--color-text);
}

.alert-info {
  background: rgba(0, 0, 200, 0.1);
  border: 1px solid rgba(0, 0, 200, 0.3);
  color: var(--color-text);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .btn, .header, .user-info {
    display: none;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* ======================================
   RBAC & Share Feature Styles
   ====================================== */

/* Login Button in Header */
.header-btn.btn-login {
  background: rgba(255, 255, 255, 0.15);
  border: none;
}

.header-btn.btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: none;
  box-shadow: none;
}

/* Share Button */
.btn-share {
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  color: white !important;
}

.btn-share:hover {
  background: linear-gradient(135deg, #0055aa 0%, #0088ee 100%);
}

/* Logo Link */
.logo-link {
  text-decoration: none;
  color: white;
}

.logo-link:hover {
  opacity: 0.9;
}

/* Public Page Styles */
.public-page .page-intro {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.public-page .page-intro h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-page .page-intro p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Files Grid for Public Page */
.files-grid {
  display: grid;
  gap: var(--spacing-md);
}

.public-files-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* File Card */
.file-card {
  background: rgba(150, 0, 225, 0.1);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: all 0.3s ease;
}

.file-card:hover {
  background: rgba(150, 0, 225, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.file-card .file-icon {
  font-size: 2.5rem;
  text-align: center;
  padding: var(--spacing-sm) 0;
}

.file-card .file-info {
  flex: 1;
}

.file-card .file-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
  word-break: break-word;
}

.file-card .file-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.file-card .file-separator {
  color: var(--color-border);
}

.file-card .file-actions {
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  color: var(--color-muted);
  margin-bottom: var(--spacing-md);
}

/* Login Prompt Card */
.login-prompt-card {
  text-align: center;
  background: rgba(150, 0, 225, 0.15);
  border: 1px dashed var(--color-primary);
}

.login-prompt-card h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.login-prompt-card p {
  color: var(--color-muted);
  margin-bottom: var(--spacing-md);
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--color-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-xl);
}

/* App Footer - Static Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 1px solid var(--color-border);
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.app-footer p {
  margin: 0;
}

/* Add padding to body to prevent content from being hidden behind footer */
body {
  padding-bottom: 50px;
}

/* Share URL Display */
.share-url-display {
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.share-url-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  background: rgba(0, 0, 48, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: monospace;
  font-size: 0.9rem;
}

/* Shared File Page */
.shared-file-page {
  max-width: 500px;
}

.file-info-card {
  background: rgba(150, 0, 225, 0.1);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.file-info-card .file-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.file-info-card h3 {
  color: var(--color-text);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  word-break: break-word;
}

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

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: var(--color-muted);
  font-weight: 500;
}

.detail-row .value {
  color: var(--color-text);
}

.detail-row .hash-value {
  font-family: monospace;
  font-size: 0.85rem;
}

.btn-download {
  display: block;
  text-align: center;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.back-link {
  text-align: center;
  margin-top: var(--spacing-md);
}

.back-link a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: var(--color-primary);
}

/* My Shares Page */
.share-form {
  margin-bottom: var(--spacing-md);
}

.shares-table {
  width: 100%;
}

.shares-table .inactive-row {
  opacity: 0.6;
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Badge Styles for Info */
.badge-info {
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  color: white;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
}

/* Responsive for Public Page */
@media (max-width: 768px) {
  .public-files-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .header h1 {
    font-size: 1.25rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  .user-info {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .share-url-display {
    flex-direction: column;
  }
  
  .share-url-input {
    width: 100%;
  }
}

