/* Main CSS file for Assuria Online - Modern Full-Screen Professional Design */

/* Import base styles */
@import './base/reset.css';
@import './base/variables.css';
@import './base/typography.css';

/* Import component styles */
@import './components/buttons.css';
@import './components/forms.css';
@import './components/cards.css';
@import './components/tables.css';

/* Import layout styles */
@import './layouts/header.css';
@import './layouts/main.css';
@import './layouts/footer.css';

/* Import utility styles */
@import './utilities/spacing.css';
@import './utilities/layout.css';
@import './utilities/typography.css';

/* Full-Screen Professional Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-primary) 100%);
}

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
  color: var(--text-inverse);
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--text-inverse);
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: var(--transition-normal);
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: var(--transition-normal);
}

.toggle-icon::before {
  top: -6px;
}

.toggle-icon::after {
  bottom: -6px;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari, Edge) */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav::-webkit-scrollbar-corner {
  background: transparent;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-item {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.nav-item.nav-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding: 0 1.5rem;
}

.nav-heading-text {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-normal);
  border-left: 3px solid transparent;
  font-weight: var(--font-weight-medium);
  position: relative;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  border-left-color: var(--accent-color);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
  border-left-color: var(--accent-color);
  font-weight: var(--font-weight-semibold);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  margin-left: 0;
}

.nav-link span {
  font-size: 0.875rem;
  text-align: left;
  flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-inverse);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-link {
  font-size: 0.75rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-normal);
}

.login-link:hover {
  color: var(--text-inverse);
  text-decoration: underline;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action:hover {
  background: var(--background-secondary);
  color: var(--text-primary);
}

.header-action svg {
  width: 20px;
  height: 20px;
}

/* Enhanced Icon Styles */
.stat-icon svg,
.action-icon svg,
.feature-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius-lg);
  color: var(--text-inverse);
}

.action-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background-secondary), var(--background-tertiary));
  border-radius: var(--border-radius-lg);
  color: var(--primary-color);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background-primary);
  margin-left: 280px;
  width: calc(100% - 280px);
}

/* Header */
.header {
  background: var(--background-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.page-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-welcome {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Stats Dashboard */
.stats-section {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius-lg);
  color: var(--text-inverse);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.stat-label {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  text-decoration: none;
}

.action-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background-secondary), var(--background-tertiary));
  border-radius: var(--border-radius-lg);
  align-self: flex-start;
}

.action-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

.action-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

/* Updates Section */
.updates-section {
  margin-bottom: 3rem;
}

.updates-grid {
  display: grid;
  gap: 1.5rem;
}

.update-card {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: left;
}

.update-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.update-header h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

.update-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  background: var(--background-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
}

.update-description {
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  text-align: left;
}

.update-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Product Showcase */
.product-showcase {
  margin-bottom: 3rem;
}

.product-content {
  display: block;
  width: 100%;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  text-align: left;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 1.125rem;
  text-align: left;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  text-align: left;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
  }
  
  .content-area {
    padding: 1.5rem;
  }
  
  .product-content {
    grid-template-columns: 1fr;
  }
  
  .awards-section {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    width: 280px;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  .header {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .update-actions {
    flex-direction: column;
  }
  
  .update-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Mobile sidebar overlay */
  .app-container.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  /* Mobile sidebar toggle animation */
  .sidebar-toggle .toggle-icon {
    transition: transform 0.3s ease;
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon {
    transform: rotate(45deg);
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon::before {
    transform: rotate(-90deg);
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon::after {
    transform: rotate(90deg);
  }
  
  /* Mobile navigation adjustments */
  .nav-section-title {
    margin: 0 0 0.5rem 1rem;
    font-size: 0.7rem;
  }
  
  .nav-link {
    padding: 0.625rem 1rem;
  }
  
  .sidebar-footer {
    padding: 0.75rem 1rem;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
  }
  
  .user-name {
    font-size: 0.8rem;
  }
  
  .login-link {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .header {
    padding: 0.75rem;
  }
  
  .content-area {
    padding: 0.75rem;
  }
  
  .sidebar {
    width: 260px;
    left: -260px;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .nav-link span {
    font-size: 0.8rem;
  }
}

/* Enhanced Button Styles */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color) !important;
  color: var(--text-inverse) !important;
  border-color: var(--primary-color) !important;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Utility classes for spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: var(--text-inverse);
  font-weight: var(--font-weight-medium);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.notification.show {
  transform: translateX(0);
}

.notification-info {
  background: var(--primary-color);
}

.notification-success {
  background: #10b981;
}

.notification-error {
  background: #ef4444;
}

.notification-warning {
  background: #f59e0b;
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
  .app-container.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .sidebar-toggle .toggle-icon {
    transition: transform 0.3s ease;
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon {
    transform: rotate(45deg);
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon::before {
    transform: rotate(-90deg);
  }
  
  .sidebar.open + .main-content .sidebar-toggle .toggle-icon::after {
    transform: rotate(90deg);
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .awards-section {
    order: -1;
  }
  
  .awards-grid {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .award-img {
    min-width: 120px;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .download-card {
    padding: 1rem;
  }
  
  .doc-card {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .sidebar-toggle,
  .header {
    display: none;
  }
  
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .content-area {
    padding: 0;
  }
  
  .stat-card,
  .action-card,
  .update-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .stat-card,
  .action-card,
  .update-card {
    border: 2px solid var(--text-primary);
  }
  
  .nav-link:hover,
  .nav-link.active {
    border-left-width: 4px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .stat-card:hover,
  .action-card:hover,
  .update-card:hover {
    transform: none;
  }
} 

/* Sidebar Footer Links */
.sidebar-links {
  padding: 0.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.sidebar-copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin: 0 0 0.25rem 0;
  text-align: left;
  line-height: 1.4;
}

.sidebar-policy {
  text-align: left;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.125rem 0;
  border-radius: var(--border-radius);
}

.sidebar-link:hover {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive sidebar links */
@media (max-width: 768px) {
  .sidebar-links {
    padding: 0.375rem 1rem;
  }
  
  .sidebar-copyright p {
    font-size: 0.7rem;
  }
  
  .sidebar-link {
    font-size: 0.7rem;
  }
} 