* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #00155c 0%, #0062ff 100%);
  color: #1f2937;
  min-height: 100vh;
}

/* Material Icons import */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Glass Container */
.glass-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  max-width: 480px;
  width: 100%;
  padding: 48px;
  text-align: center;
  animation: slideUp 0.6s ease-out;
}

.logo {
  width: 120px;
  height: 120px;
  /* background: #1e40af; */
  /* border-radius: 16px; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  font-size: 52px;
  margin: 0 auto 20px;
  /* box-shadow: 0 8px 24px rgba(30, 64, 175, 0.3); */
}

.login-box h1 {
  color: white;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  margin-bottom: 40px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  color: #1f2937;
  display: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
header.visible {
  display: flex;
}
.header-title {
  font-weight: 700;
  color: #1e40af;
  font-size: 1.2em;
}


/* Sidebar */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: 0.3s ease;
  padding: 30px 20px;
  z-index: 1000;
}
.panel.open {
  transform: translateX(0);
}
.panel nav a {
  display: block;
  margin-top: 12px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s;
}
.panel nav a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}
.panel button {
  margin-top: 30px;
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}
#closeSidebar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
}

/* Main Dashboard */
.page-content {
  padding: 40px 20px;
  margin-top: 70px;
  display: none;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.page-content.visible {
  display: flex;
}
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 16px;
  width: 240px;
  height: 160px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card-title {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  font-weight: 600;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}
.card-number {
  font-size: 40px;
  font-weight: bold;
  color: white;
}
.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 20px;
}

/* Upload */
.upload-card {
  cursor: pointer;
}
.upload-default {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
}
.upload-default:hover {
  transform: scale(1.1);
}
.file-list {
  width: 100%;
  max-height: 100px;
  overflow-y: auto;
  padding: 5px;
  font-size: 12px;
}
.upload-btn-wrapper {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.upload-btn {
  width: 100%;
  padding: 8px 12px;
background: linear-gradient(135deg, #1e40af, #3b82f6);  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

/* Overlay Panel */
#overlayPanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 30px;
  display: none;
  z-index: 2000;
  overflow-y: auto;
}
#closePanel {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
}

/* Document Cards Grid for My Documents and Signed Documents */
.document-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

.document-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  color: #1f2937; /* Darker text for readability on light background */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* Ensure content stays within bounds */
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.document-card .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.document-card .card-icon {
  font-size: 28px;
  color: #1e40af; /* Primary blue for icons */
}

.document-card h4 {
  font-size: 1.1em;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
  word-break: break-word; /* Ensure long names wrap */
}

.document-card .card-info {
  font-size: 0.9em;
  color: #4b5563; /* Gray for descriptive text */
  margin-bottom: 15px;
}

.document-card .card-info p {
  margin: 5px 0;
  word-break: break-word;
}

.document-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto; /* Push actions to the bottom */
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Icon Buttons */
.icon-btn {
  background: rgba(255, 255, 255, 0.8); /* Lighter background for icon buttons */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 8px; /* Square button */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #1e40af; /* Icon color */
  font-size: 20px; /* Icon size */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-decoration: none; /* For anchor tags */
  flex-shrink: 0; /* Prevent shrinking */
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.icon-btn .material-icons {
  font-size: inherit; /* Ensure icon uses parent font-size */
}


/* Settings Panel Styles */
.settings-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: #1f2937;
}

.settings-panel h2 {
  font-size: 24px;
  color: #1e40af;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.settings-section {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.settings-section h3 {
  color: #1e40af;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
}

.settings-section h3 .material-icons {
  font-size: 20px;
}

.setting-item {
  margin-bottom: 20px;
  padding: 10px 0;
}

.setting-item label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 15px;
}

.setting-item input[type="text"],
.setting-item input[type="email"],
.setting-item textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="email"]:focus,
.setting-item textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.setting-item textarea {
  resize: vertical;
  min-height: 80px;
}

.setting-description {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
  line-height: 1.4;
  background: #f0f4f8; /* Light background for description */
  padding: 8px 12px;
  border-radius: 6px;
}

.permission-note {
  background: #e0f2f7; /* Light blue background for notes */
  border: 1px solid #b3e5fc;
  border-left: 5px solid #03a9f4; /* Left border accent */
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
  color: #01579b;
  line-height: 1.5;
  font-weight: 500;
}

/* CSV Upload Button */
.btn-upload-csv {
  background: #28a745; /* Green color for upload */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
  width: auto; /* Adjust width based on content */
}

.btn-upload-csv:hover {
  background: #218838; /* Darker green on hover */
  transform: translateY(-2px);
}

.btn-upload-csv .material-icons {
  font-size: 18px;
}

/* Toggle Switch */
.toggle-label {
  display: flex !important;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  color: #374151;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #d1d5db;
  border-radius: 24px;
  margin-right: 12px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-slider {
  background: #1e40af;
}

.toggle-label input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

/* Settings Actions (buttons at the bottom) */
.settings-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  justify-content: flex-end; /* Align buttons to the right */
  border-top: 1px solid #e0e0e0;
  margin-top: 25px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.settings-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  min-width: 120px; /* Ensure buttons have a minimum width */
  text-align: center;
}

/* General Buttons (from original theme) */
.btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #1e40af;
  color: white;
}
.btn-primary:hover {
  background: #3744ba;
}
.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}
.btn-secondary:hover {
  background: #d1d5db;
}
.btn-danger {
  background: #ef4444;
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}


/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Modal Styles */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.custom-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popupSlideIn 0.3s ease-out;
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.custom-modal-header h3 {
  margin: 0;
  color: #1e40af;
  font-size: 20px;
  font-weight: 600;
}

.custom-modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.custom-modal-close:hover {
  color: #333;
}

.custom-modal-body p {
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.custom-modal-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.custom-modal-btn {
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-size: 15px;
}

.custom-modal-btn-primary {
  background: #1e40af;
  color: white;
}

.custom-modal-btn-primary:hover {
  background: #3744ba;
}

.custom-modal-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.custom-modal-btn-secondary:hover {
  background: #d1d5db;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* NEW: Signatures Viewer Panel Styles */
.signatures-viewer {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: #1f2937;
}

.signatures-viewer h2 {
  font-size: 24px;
  color: #1e40af;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.signature-search-input {
  width: 100%;
  padding: 10px 15px 10px 45px; /* Adjust padding for icon */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #f9f9f9;
}

.signature-search-input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 20px;
}

.signature-list {
  max-height: 60vh; /* Limit height and allow scrolling */
  overflow-y: auto;
  padding-right: 10px; /* Space for scrollbar */
}

.signature-log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f4f8; /* Light background for each entry */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.signature-log-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.signature-info {
  flex-grow: 1;
  word-break: break-word;
}

.signature-info strong {
  color: #1e40af;
  font-size: 16px;
}

.signature-info span {
  font-size: 14px;
  color: #4b5563;
  display: block; /* New line for email */
}

.signature-info small {
  font-size: 12px;
  color: #6b7280;
}

.signature-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.isolated-tag {
  display: inline-block;
  background: #dcfce7; /* Light green background */
  color: #16a34a; /* Dark green text */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}

.download-isolated-btn {
  background: #3b82f6; /* Blue for download button */
  color: white;
}

.download-isolated-btn:hover {
  background: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Login adjustments */
  .login-box {
    padding: 32px 24px;
    margin: 20px;
  }
  .login-box h1 {
    font-size: 2em;
  }
  
  /* Header mobile */
  header {
    padding: 12px 16px;
  }
  .header-title {
    font-size: 1.1em;
  }
  
  /* Sidebar full width on mobile */
  .panel {
    width: 100%;
  }
  
  /* Dashboard cards stack vertically */
  .page-content {
    padding: 20px 16px;
    margin-top: 60px;
  }
  .card {
    width: 100%;
    max-width: 280px;
    height: 140px;
  }
  
  /* Overlay panel full screen */
  #overlayPanel {
    width: 100%;
    padding: 20px 16px;
  }
  
  /* Document items stack */
  .document-cards-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .document-card .card-actions {
    flex-wrap: wrap; /* Ensure buttons wrap */
    justify-content: center;
  }
  .icon-btn {
    flex-grow: 1; /* Allow icon buttons to grow */
    max-width: 100px; /* Limit their max width */
  }

  /* Settings responsive */
  .settings-panel {
    padding: 20px;
  }
  .settings-section {
    padding: 15px;
  }
  .settings-actions {
    justify-content: center;
    gap: 8px;
  }
  
  .settings-actions .btn {
    flex: 1;
    min-width: unset;
    width: 100%; /* Full width buttons */
  }

  /* Signatures viewer responsive */
  .signatures-viewer {
    padding: 20px;
  }
  .signatures-viewer h2 {
    font-size: 20px;
  }
  .signature-log-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .signature-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .isolated-tag {
    margin-top: 8px;
  }

  .custom-modal-content {
    padding: 24px;
    margin: 0 15px;
  }

  .custom-modal-header h3 {
    font-size: 18px;
  }

  .custom-modal-body p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .custom-modal-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn-upload-csv {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .card {
    height: 120px;
    padding: 16px;
  }
  .card-number {
    font-size: 32px;
  }
  .upload-default {
    font-size: 36px;
  }
  
  .settings-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .settings-actions {
    flex-direction: column;
  }
  
  .settings-actions .btn {
    width: 100%;
  }
  
  .custom-modal-content {
    padding: 20px;
  }

  .custom-modal-header h3 {
    font-size: 16px;
  }
}

/* Signatures Manager Styles */
.signatures-manager {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: #1f2937;
}

.signatures-manager h2 {
  font-size: 24px;
  color: #1e40af;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.signature-create-section {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.signature-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.signature-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.signature-tab.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.signature-tab:hover {
  color: #1e40af;
}

.signature-tab-content {
  display: none;
}

.signature-tab-content.active {
  display: block;
}

#signatureText {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
}

#signatureFont {
  width: 200px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 15px;
}

.signature-preview {
  border: 1px dashed #d1d5db;
  padding: 20px;
  margin-bottom: 15px;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

#signatureCanvas {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: crosshair;
  display: block;
  margin-bottom: 15px;
}

.canvas-controls {
  display: flex;
  gap: 10px;
}

.saved-signatures-section h3 {
  color: #1e40af;
  margin-bottom: 15px;
  font-size: 18px;
}

.saved-signatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.signature-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signature-display {
  width: 100%;
  padding: 10px;
  border: 1px dashed #e5e7eb;
  border-radius: 6px;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .signature-tabs {
    flex-direction: column;
  }
  
  #signatureCanvas {
    width: 100%;
    height: 120px;
  }
  
  .saved-signatures-grid {
    grid-template-columns: 1fr;
  }
}

/* Add these styles to the existing style.css */

/* Signature Display Styles */
.signature-display-container {
  margin-top: 8px;
}

.signature-display-dashboard {
  margin-top: 8px;
}

.signature-name {
  word-break: break-word;
}

.log-entry .signature-display-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.signature-log-entry .signature-display-dashboard {
  margin-top: 10px;
}

/* Mobile responsive for signature displays */
@media (max-width: 768px) {
  .signature-display-container img,
  .signature-display-dashboard img {
    max-width: 120px;
    max-height: 35px;
  }
  
  .signature-display-container .signature-name,
  .signature-display-dashboard div[style*="font-family"] {
    font-size: 14px !important;
    padding: 6px !important;
  }
}

/* Update signature actions to handle multiple buttons */
.signature-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.signature-actions .icon-btn {
  min-width: 32px;
}

/* Mobile responsive for multiple buttons */
@media (max-width: 768px) {
  .signature-actions {
    gap: 4px;
  }
  
  .signature-actions .icon-btn {
    min-width: 28px;
    padding: 6px;
  }
}

.extension-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  color: white;
}

.extension-container h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.extension-container .text-muted {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.btn-extend {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-extend:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}