html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

/* Sidebar Styles */
#wrapper {
  min-height: 100vh;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  transition: margin 0.25s ease-out;
  width: 15rem;
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid #e9ecef;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

#page-content-wrapper {
  min-width: 100vw;
  margin-left: 0;
  transition: margin-left 0.25s ease-out;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

/* Home Tile Styles */
.home-tile {
  transition: all 0.3s ease;
}

.home-tile-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.home-tile-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-tile:hover .home-tile-content {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.home-tile:hover .home-tile-content::before {
  opacity: 1;
}

.home-tile:hover {
  text-decoration: none;
}

.home-icon-wrapper {
  position: relative;
  z-index: 1;
}

.home-tile-content i {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.home-tile:hover .home-tile-content i {
  transform: scale(1.1) rotate(5deg);
}

.home-tile-content h5 {
  position: relative;
  z-index: 1;
}

.home-tile-content small {
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
    margin-left: 15rem;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}

/* Professional Card Styles */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  border: none;
}

/* Quota Display Styles */
.quota-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.quota-progress {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.quota-progress .progress-bar {
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 4px;
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.4);
}

/* File Upload Styles */
.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out;
  background-color: #f8f9fa;
}

.file-upload-area:hover {
  border-color: #667eea;
  background-color: #f0f2ff;
}

.file-upload-area.dragover {
  border-color: #667eea;
  background-color: #e8ecff;
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
  color: white;
}

/* Stats Cards */
.stats-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.15s ease-in-out;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.stats-label {
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  #sidebar-wrapper {
    margin-left: -15rem;
  }
  
  #page-content-wrapper {
    margin-left: 0;
  }
  
  .quota-card {
    padding: 1rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
}

/* Minimal Sidebar Styles */
.sidebar-minimal {
    width: 240px;
    min-height: 100vh;
    background-color: #F0F0F0;
    border-right: 1px solid #C0C0C0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #C0C0C0;
    color: #667eea;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sidebar-company-name {
    font-size: 1.9rem;
    color: #667eea;
}

.nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.25rem;
  transition: background 0.15s, color 0.15s;
}

.nav-link.active, .nav-link:hover {
  background: #e0e7ff;
  color: #3b5bdb;
}

.btn-outline-secondary {
  font-weight: 500;
}

#page-content-wrapper {
  margin-left: 240px;
}

@media (max-width: 991.98px) {
  .sidebar-minimal {
    display: none !important;
  }
  #page-content-wrapper {
    margin-left: 0;
  }
}

.app-page {
    background-color: #F5F5F5;
}