/* ============================================
   SANTINI CITY LINE - Organizational Structure
   org.santinicityline.ro
   ============================================ */

:root {
  --primary-color: #27ae60;
  --primary-dark: #1e8449;
  --primary-light: #2ecc71;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --success-color: #27ae60;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 15px rgba(0,0,0,0.08);
  --card-hover-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Brand Icon */
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.25rem;
  background: #f0f0f0;
  padding: 0.25rem;
  border-radius: 20px;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  color: #666;
}

.lang-btn:hover {
  color: var(--primary-color);
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 3rem 0;
  margin-bottom: 0;
}

.hero-stats {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
}

.hero-stats .stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Department Cards */
.dept-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.dept-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dept-card-title {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.dept-card-desc {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.btn-view {
  background: var(--light-bg);
  color: var(--primary-color);
  border: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-view:hover {
  background: var(--primary-color);
  color: white;
}

/* Add Department Card */
.add-card {
  border: 2px dashed #dee2e6;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #6c757d;
  transition: all 0.3s ease;
}

.add-card:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(39, 174, 96, 0.05);
}

.add-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.add-card-text {
  font-weight: 500;
}

/* Detail Header */
.detail-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2.5rem 0;
}

.detail-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Responsibility Items */
.responsibility-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.responsibility-item:last-child {
  border-bottom: none;
}

.responsibility-item i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

/* System Items */
.system-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.system-item i {
  color: var(--accent-color);
}

/* Team Member Card */
.member-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.member-card:hover {
  background: #e9ecef;
}

.member-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.member-name {
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-role {
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.member-contact {
  font-size: 0.8rem;
  color: #888;
}

.manager-badge {
  background: var(--warning-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Country Cards Section */
.country-card-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.country-card-container:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.country-card-header {
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.country-card-header h5 {
  margin: 0;
  font-weight: 600;
}

.country-card-body {
  padding: 1rem;
}

.country-step {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  align-items: flex-start;
}

.country-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.country-step-content h6 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.country-step-content p {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

.country-step-day {
  font-size: 0.7rem;
  background: rgba(0,0,0,0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
}

/* Purchase Flow Header */
.purchase-flow-header {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  padding: 3rem 0;
}

/* Country Timeline */
.country-timeline {
  position: relative;
  padding: 2rem 0;
}

.country-timeline .country-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.country-timeline .country-card:hover {
  transform: scale(1.05);
}

.country-timeline .country-card.ecuador {
  border-bottom: 4px solid #FFD100;
}

.country-timeline .country-card.netherlands {
  border-bottom: 4px solid #FF6B00;
}

.country-timeline .country-card.romania {
  border-bottom: 4px solid #002B7F;
}

.country-timeline .country-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.country-timeline .country-card h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.country-timeline .country-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, #FFD100, #FF6B00, #002B7F);
  z-index: 1;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* Flow Cards */
.flow-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.flow-card-header {
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flow-card-header i {
  font-size: 1.5rem;
}

.flow-card-header h5 {
  margin: 0;
  font-weight: 600;
}

.flow-card-header p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
}

.flow-steps {
  padding: 1rem;
}

.flow-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  position: relative;
}

.flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 50px;
  bottom: -10px;
  width: 2px;
  background: #e0e0e0;
}

.flow-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.flow-step-content {
  flex: 1;
}

.flow-step-day {
  font-size: 0.75rem;
  background: var(--light-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.25rem;
  color: #6c757d;
}

.flow-step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.flow-step-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.flow-step-location {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
}

.flow-step-location i {
  margin-right: 0.25rem;
}

/* Admin Dashboard */
.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 12px;
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.quick-action-card:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.quick-action-card i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.quick-action-card span {
  font-weight: 500;
}

.company-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.company-info-item:last-child {
  border-bottom: none;
}

/* Edit Form - Team Member Item */
.team-member-item {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .navbar, .btn, .modal, .dropdown {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .detail-header {
    background: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-stats {
    display: none;
  }
  
  .detail-header {
    padding: 1.5rem 0;
  }
  
  .detail-icon {
    width: 50px;
    height: 50px;
  }
  
  .timeline-line {
    display: none;
  }
  
  .country-timeline .row {
    gap: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-card, .country-card-container, .flow-card {
  animation: fadeInUp 0.5s ease forwards;
}
