/* Copied from _template_backup/css/styles.css */
/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header .navbar {
  padding: 1rem 0;
}

.header .navbar-brand {
  font-size: 1.5rem;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header .navbar-brand:hover {
  color: #f8f9fa !important;
  transform: translateY(-2px);
}

.header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.header .navbar-toggler {
  border: none;
  color: white;
}

.header .navbar-toggler:focus {
  box-shadow: none;
}

.header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Adjust main container to account for header */
.main-container {
  margin-top: 1rem;
}

body {
  background-color: #f8f9fa;
}

.main-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.invoice-container {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-settings {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h5 {
  color: #495057;
  margin-bottom: 20px;
  font-weight: 600;
}

.currency-dropdown {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.currency-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.currency-option {
  padding: 8px 12px;
  cursor: pointer;
}

.currency-option:hover {
  background-color: #f8f9fa;
}

.currency-option.selected {
  background-color: #007bff;
  color: white;
}

.invoice-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.invoice-header img {
  max-height: 80px;
}

.table input {
  background: transparent;
}

.table input:focus {
  outline: none;
  box-shadow: none;
}

.logo-upload-area {
  width: 280px;
  height: 130px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: #6c757d;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.logo-upload-area:hover {
  border-color: #007bff;
  background-color: #e3f2fd;
  color: #007bff;
}

.logo-upload-area.has-image {
  border: 2px solid #28a745;
  background-color: #d4edda;
  color: #155724;
}

.logo-upload-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hidden-file-input { display: none; }

.auto-resize-textarea { resize: none; overflow: hidden; min-height: 80px; }

.invoice-number-group { width: 180px; max-width: 100%; display: inline-flex; }
.invoice-input-field { width: 180px; max-width: 100%; }

.invoice-box { font-size: 0.9rem; }
.invoice-box h6 { font-size: 0.95rem; }
.invoice-box .form-control { font-size: 0.85rem; }
.invoice-box .table { font-size: 0.85rem; }
.totals-input { width: 150px !important; }
.transparent-input { border: none !important; background: transparent !important; box-shadow: none !important; }

.editable-label { position: relative; cursor: pointer; padding: 6px 12px; border-radius: 4px; transition: background-color 0.2s ease; min-height: 38px; display: flex; align-items: center; }
.editable-label:hover { background-color: transparent; }
.editable-label input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid transparent; border-radius: 4px; padding: 6px 12px; background: transparent; transition: border-color 0.2s ease; }
.editable-label:hover input, .editable-label input:focus { border-color: #007bff; background: transparent; }
.editable-label .label-text { pointer-events: none; transition: opacity 0.2s ease; }
.editable-label:hover .label-text, .editable-label input:focus+.label-text { opacity: 0; }

.payment-terms-container { display: flex; align-items: center; gap: 0.5rem; }
.payment-terms-container .editable-label { flex-shrink: 0; }
.payment-terms-container .form-control { flex: 1; }

@media (max-width: 768px) {
  .main-container { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
}

/* Footer Styles */
.footer { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #ecf0f1; padding: 3rem 0 1rem 0; margin-top: 4rem; }
.footer-brand { font-size: 1.5rem; color: #ecf0f1; margin-bottom: 1rem; }
.footer-description { color: #bdc3c7; line-height: 1.6; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); color: #ecf0f1; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: rgba(255, 255, 255, 0.2); color: #ecf0f1; transform: translateY(-2px); }
.footer-heading { color: #ecf0f1; font-weight: 600; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #bdc3c7; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.footer-links a:hover { color: #ecf0f1; transform: translateX(5px); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; color: #bdc3c7; }
.contact-item i { color: #ffffff; margin-top: 0.25rem; flex-shrink: 0; }
.contact-item span { line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; margin-top: 2rem; }
.copyright { color: #bdc3c7; margin: 0; font-size: 0.9rem; }
.footer-bottom-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer-bottom-links a { color: #bdc3c7; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: #ecf0f1; }

@media (max-width: 768px) {
  .footer { padding: 2rem 0 1rem 0; }
  .footer-bottom-links { justify-content: flex-start; margin-top: 1rem; }
  .social-links { justify-content: center; }
  .contact-info { gap: 0.75rem; }
}

/* Authentication Page Styles */
.auth-body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
.auth-container { padding: 2rem 0; min-height: calc(100vh - 200px); display: flex; align-items: center; }
.auth-card { background: white; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); padding: 2rem; position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #667eea, #764ba2); }
.auth-card .nav-pills { border-radius: 12px; background: #f8f9fa; padding: 4px; }
.auth-card .nav-pills .nav-link { border-radius: 8px; border: none; color: #6c757d; font-weight: 500; padding: 0.75rem 1.5rem; transition: all 0.3s ease; }
.auth-card .nav-pills .nav-link:hover { color: #495057; background-color: rgba(102, 126, 234, 0.1); }
.auth-card .nav-pills .nav-link.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }
.auth-form-container { padding: 1rem 0; }
.auth-form-container h3 { color: #2c3e50; font-weight: 600; }
.auth-form-container p { color: #6c757d; font-size: 0.95rem; }
.auth-form .form-label { font-weight: 500; color: #495057; margin-bottom: 0.5rem; }
.auth-form .form-control { border: 2px solid #e9ecef; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.95rem; transition: all 0.3s ease; }
.auth-form .form-control:focus { border-color: #667eea; box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25); }
.auth-form .form-control.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
.auth-form .input-group-text { background: #f8f9fa; border: 2px solid #e9ecef; border-left: none; color: #6c757d; }
.auth-form .input-group .form-control { border-right: none; }
.auth-form .input-group .btn { border: 2px solid #e9ecef; border-left: none; background: #f8f9fa; color: #6c757d; transition: all 0.3s ease; }
.auth-form .input-group .btn:hover { background: #e9ecef; color: #495057; }
.auth-form .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 8px; padding: 0.75rem 1.5rem; font-weight: 500; transition: all 0.3s ease; }
.auth-form .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }
.auth-form .btn-primary:disabled { opacity: 0.7; transform: none; }
.auth-form .form-check-input { border: 2px solid #e9ecef; border-radius: 4px; }
.auth-form .form-check-input:checked { background-color: #667eea; border-color: #667eea; }
.auth-form .form-check-label { color: #6c757d; font-size: 0.9rem; }
.auth-form .form-check-label a { color: #667eea; text-decoration: none; }
.auth-form .form-check-label a:hover { text-decoration: underline; }
.password-strength { margin-top: 0.5rem; }
.password-strength .progress { border-radius: 2px; background-color: #e9ecef; }
.password-strength .progress-bar { transition: all 0.3s ease; }
.password-strength small { font-size: 0.8rem; margin-top: 0.25rem; display: block; }
.social-auth { margin-top: 2rem; }
.divider { text-align: center; position: relative; margin: 1.5rem 0; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e9ecef; }
.divider span { background: white; padding: 0 1rem; color: #6c757d; font-size: 0.9rem; position: relative; z-index: 1; }
.social-auth .btn { border-radius: 8px; padding: 0.75rem 1rem; font-weight: 500; transition: all 0.3s ease; }
.social-auth .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.social-auth .btn-outline-dark { border-color: #343a40; color: #343a40; }
.social-auth .btn-outline-dark:hover { background-color: #343a40; border-color: #343a40; }
.social-auth .btn-outline-primary { border-color: #007bff; color: #007bff; }
.social-auth .btn-outline-primary:hover { background-color: #007bff; border-color: #007bff; }

@media (max-width: 768px) {
  .auth-container { padding: 1rem 0; }
  .auth-card { margin: 0 1rem; padding: 1.5rem; }
  .auth-card .nav-pills .nav-link { padding: 0.5rem 1rem; font-size: 0.9rem; }
  .social-auth .row { flex-direction: column; gap: 0.5rem; }
  .social-auth .col-6 { width: 100%; }
}


