/* Project Status Tab Styles - Clean Design */

.status-tab-container {
  padding: 20px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Action Bar */
.status-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.status-actions-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.view-toggle-buttons {
  display: flex;
  gap: 10px;
}

.view-toggle-buttons .btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-toggle-buttons .btn.active {
  background-color: #0079C7;
  border-color: #0079C7;
  color: white;
}

.view-toggle-buttons .btn:not(.active) {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.view-toggle-buttons .btn:not(.active):hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* Status Form Section */
.status-form-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.status-form-section h3 {
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
}

.status-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.status-form .form-group {
  flex: 1;
}

.status-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}

.status-form .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.status-form .form-control:focus {
  outline: 0;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.status-form select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.status-form textarea.form-control {
  resize: vertical;
  min-height: 60px;
}

.form-actions {
  text-align: right;
}

.form-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions .btn-primary {
  background-color: #007bff;
  color: white;
}

.form-actions .btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
}

.form-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status Content */
.status-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status Views */
.status-view {
  display: none;
  flex: 1;
  overflow: hidden;
}

.status-view.active {
  display: flex;
  flex-direction: column;
}

/* Chart Container */
#status-chart-container {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  flex: 1;
  overflow: hidden;
  width: 100%;
}

#status-chart {
  width: 100% !important;
  max-width: none;
  border-radius: 4px;
  background: white;
  display: block;
  margin: 0 auto;
}

/* Status Table Container */
#status-table-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  background: white;
}

/* No Data Message */
.no-data-message {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-data-message i {
  display: block;
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
  color: #2c3e50;
}

.no-data-message span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
}

.no-data-message p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

.status-history-section h3 {
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
}

/* View Toggle - New Bottom Design */
.view-toggle-bottom {
  text-align: center;
  margin-top: 20px;
}

.view-btn-toggle {
  padding: 12px 24px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.view-btn-toggle:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.view-btn-toggle.active {
  background: #667eea;
  color: white;
}

/* Table Header */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.table-header h4 {
  margin: 0;
  color: #495057;
  font-weight: 600;
}

/* Status Views */
.status-view {
  display: none;
}

.status-view.active {
  display: block;
}

/* Chart Container */
#status-chart-container {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

#status-chart {
  max-width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
}

/* Status Table */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.status-table th,
.status-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.status-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 10;
}

.status-table tbody tr:hover {
  background-color: #f5f5f5;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.status-table .btn {
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-table .btn-danger {
  background-color: #dc3545;
  color: white;
}

.status-table .btn-danger:hover {
  background-color: #c82333;
}

/* No Data Message */
.no-data-message {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

.no-data-message i {
  display: block;
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Error Message */
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
}

.error-message i {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .status-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .view-toggle {
    flex-direction: column;
  }
  
  .status-table {
    font-size: 14px;
  }
  
  .status-table th,
  .status-table td {
    padding: 8px 4px;
  }
}

/* Animation für Loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Projekt-Status in der Haupttabelle */
.project-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.project-status .status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-status .status-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-status {
  color: #6c757d;
  font-style: italic;
}

/* ===== STATUS MODAL STYLES ===== */

/* Status Modal - Standard Modal Design */
#status-modal {
  background-color: #f8f9fa;
}

.status-modal-content {
  padding: 20px;
}

/* Projekt Info */
.project-info-section {
  background: white;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.current-status {
  font-size: 0.9rem;
  color: #6c757d;
}

.current-status .label {
  font-weight: 500;
}

.current-status .date {
  color: #495057;
  font-weight: 600;
}

.no-status {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.no-status i {
  margin-right: 6px;
  color: #2c3e50;
}

/* Form Layout - Side by Side */
.status-form-layout {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 5px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.status-selection {
  flex: 1;
}

.comment-section {
  flex: 1;
}

.status-form-layout h4 {
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

/* Status Options - Compact */
.status-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.status-option:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.status-option.selected {
  background-color: #e7f3ff;
  border-color: #0079C7;
}

.status-radio {
  margin-right: 10px;
  transform: scale(1.1);
}

.status-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.status-text {
  flex: 1;
  font-size: 0.9rem;
}

.status-text strong {
  color: #2c3e50;
}

/* Comment Field */
.comment-section .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.comment-section .form-control:focus {
  outline: 0;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Current Status Indicator */
.current-status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.status-circle-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.no-status-circle {
  background-color: #ccc;
}

.status-info-text {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.status-name {
  font-weight: 600;
  color: #495057;
}

.status-date {
  font-size: 13px;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .status-form-layout {
    flex-direction: column;
  }
  
  .status-selection,
  .comment-section {
    flex: none;
  }
  
  .status-actions-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .status-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
}
