/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #4caf50;
  outline: none;
}

.help-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Button styles */
.btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #45a049;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
  background-color: #2196f3;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.btn-small:hover {
  background-color: #1976d2;
}

.create-button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  float: right;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.create-button:hover {
  background-color: #45a049;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: bold;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Status indicators */
.host-status,
.datacenter-status,
.feature-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
}

.status-connected,
.status-poweredon,
.status-enabled {
  background-color: #4caf50;
  color: white;
}

.status-disconnected,
.status-poweredoff,
.status-disabled {
  background-color: #f44336;
  color: white;
}

.datacenter-status {
  background-color: #2196f3;
  color: white;
}

/* Section headings */
h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-size: 1.5em;
}

/* Responsive tables */
@media screen and (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 120px;
  }

  .host-status,
  .datacenter-status,
  .feature-status {
    font-size: 0.8em;
    padding: 3px 6px;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

.modal h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Form action buttons */
.form-actions {
  margin-top: 20px;
  text-align: right;
}

.btn-submit {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-cancel {
  background-color: #f44336;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #45a049;
}

.btn-cancel:hover {
  background-color: #da190b;
}

/* Edit VM button */
.edit-vm-btn {
  float: right;
  margin-bottom: 10px;
  background-color: #2196f3;
}

.edit-vm-btn:hover {
  background-color: #1976d2;
}

/* Responsive modal */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

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

  .btn-submit,
  .btn-cancel {
    width: 100%;
    margin: 5px 0;
  }
}

/* Alert styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Chart container styles */
.charts-section {
  margin: 20px 0;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-container {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 300px;
}

.refresh-btn {
  padding: 8px 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: #e9ecef;
}

@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced chart styles */
.chart-box {
  position: relative;
  transition: all 0.3s ease;
}

.chart-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Chart tooltip styles */
.chartjs-tooltip {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  padding: 8px;
  color: white;
  font-size: 12px;
  pointer-events: none;
}

/* Chart zoom controls */
.chartjs-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.zoom-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-button:hover {
  background: #f5f5f5;
}

/* Loading indicator */
.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

.chart-box.loading .chart-loading {
  display: block;
}

/* Toast notification styles */
.swal2-toast {
  background: rgba(0, 0, 0, 0.9) !important;
  color: white !important;
}

/* Dil seçici stilleri */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.header-right {
  display: flex;
  align-items: center;
}

.language-selector {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.language-selector:hover {
  border-color: #007bff;
}

.language-selector:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.language-selector option {
  padding: 8px;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }

  .header-left {
    flex-direction: column;
    text-align: center;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }

  .language-selector {
    width: 100%;
    max-width: 200px;
  }
}

/* Snapshot Form Styles */
.snapshot-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 20px auto;
}

.snapshot-form h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.snapshot-form .form-group {
    margin-bottom: 20px;
}

.snapshot-form label {
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.snapshot-form input[type="text"],
.snapshot-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.snapshot-form input[type="text"]:focus,
.snapshot-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.snapshot-form textarea {
    min-height: 100px;
    resize: vertical;
}

.snapshot-form .checkbox-group {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.snapshot-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.snapshot-form .checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.snapshot-form .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.snapshot-form .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snapshot-form .btn-submit {
    background: #2ecc71;
}

.snapshot-form .btn-submit:hover {
    background: #27ae60;
}

.snapshot-form .btn-cancel {
    background: #e74c3c;
}

.snapshot-form .btn-cancel:hover {
    background: #c0392b;
}

/* Error Message Style */
.error-message {
    background: #fee;
    color: #e74c3c;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message::before {
    content: "⚠";
    font-size: 18px;
}

/* Toast Bildirimleri */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #2ecc71;
}

.toast-error {
    background-color: #e74c3c;
}

.toast-warning {
    background-color: #f1c40f;
}

.toast-info {
    background-color: #3498db;
}

/* Snapshot Liste Stilleri */
.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.snapshot-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.snapshot-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
}

.snapshot-info p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.snapshot-info small {
    color: #95a5a6;
    font-size: 12px;
}

.snapshot-actions {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background-color: #e74c3c !important;
}

.btn-danger:hover {
    background-color: #c0392b !important;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    font-style: italic;
}

/* VM Edit Form Styles */
.vm-edit-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 20px auto;
}

.vm-edit-form h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.vm-edit-form .form-group {
    margin-bottom: 20px;
}

.vm-edit-form label {
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vm-edit-form input[type="text"],
.vm-edit-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vm-edit-form input[type="text"]:focus,
.vm-edit-form input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.vm-edit-form .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.vm-edit-form .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vm-edit-form .btn-submit {
    background: #2ecc71;
}

.vm-edit-form .btn-submit:hover {
    background: #27ae60;
}

.vm-edit-form .btn-cancel {
    background: #e74c3c;
}

.vm-edit-form .btn-cancel:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vm-edit-form {
        margin: 10px;
        padding: 15px;
    }

    .vm-edit-form .form-actions {
        flex-direction: column;
    }

    .vm-edit-form .btn {
        width: 100%;
        margin: 5px 0;
    }
}
