/* depreciation-calculator.css */
.ad-top-banner .mrg-tag { 
  width: 970px !important; 
  height: 250px !important; 
}

@media (max-width: 1199px) { 
  .ad-top-banner .mrg-tag { 
    width: 728px !important; 
    height: 90px !important; 
  } 
}

@media (max-width: 768px) { 
  .ad-top-banner .mrg-tag { 
    width: 320px !important; 
    height: 50px !important; 
  } 
}

.depreciation-calculator {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 16px; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  background: #f5f5f5;
}

.depreciation-calculator .breadcrumb {
  margin-bottom: 20px;
  padding: 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.depreciation-calculator .breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.depreciation-calculator .breadcrumb a:hover {
  text-decoration: underline;
}

.depreciation-calculator h1 { 
  margin: 16px 0; 
  text-align: center;
  color: #333;
}

.depreciation-calculator .calculator-container {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.depreciation-calculator .error-message {
  display: none;
  color: #dc3545;
  padding: 10px;
  margin-bottom: 10px;
}

.depreciation-calculator .error-message:not(.hidden) {
  display: block;
}

.depreciation-calculator .input-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.depreciation-calculator .input-group {
  display: flex;
  flex-direction: column;
}

.depreciation-calculator label { 
  font-size: 14px; 
  color: #495057; 
  margin-bottom: 8px;
  font-weight: 500;
}

.depreciation-calculator input,
.depreciation-calculator select { 
  width: 100%; 
  padding: 12px; 
  border: 2px solid #e9ecef; 
  border-radius: 8px; 
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.depreciation-calculator input:focus,
.depreciation-calculator select:focus {
  outline: none;
  border-color: #007bff;
}

.depreciation-calculator .calculate-btn,
.depreciation-calculator .reset-btn,
.depreciation-calculator .share-btn,
.depreciation-calculator .export-btn,
.depreciation-calculator .csv-btn {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 10px;
}

.depreciation-calculator .reset-btn {
  background: linear-gradient(90deg, #6c757d, #5a6268);
}

.depreciation-calculator .calculate-btn:hover,
.depreciation-calculator .reset-btn:hover,
.depreciation-calculator .share-btn:hover,
.depreciation-calculator .export-btn:hover,
.depreciation-calculator .csv-btn:hover {
  background: linear-gradient(90deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.depreciation-calculator .reset-btn:hover {
  background: linear-gradient(90deg, #5a6268, #4b5156);
}

.depreciation-calculator .calculate-btn:active,
.depreciation-calculator .reset-btn:active,
.depreciation-calculator .share-btn:active,
.depreciation-calculator .export-btn:active,
.depreciation-calculator .csv-btn:active {
  transform: scale(0.98);
}

.depreciation-calculator .results,
.depreciation-calculator .breakdown,
.depreciation-calculator .history {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.depreciation-calculator .results.loading::before,
.depreciation-calculator .breakdown.loading::before,
.depreciation-calculator .history.loading::before {
  content: '';
  display: block;
  height: 100px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.depreciation-calculator .results:not(.hidden),
.depreciation-calculator .breakdown:not(.hidden),
.depreciation-calculator .history:not(.hidden) {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.depreciation-calculator .result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.depreciation-calculator .result-item {
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.depreciation-calculator .result-value {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.depreciation-calculator .result-label {
  color: #495057;
  font-size: 14px;
}

.depreciation-calculator .breakdown h3,
.depreciation-calculator .history h3 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.depreciation-calculator .breakdown-item,
.depreciation-calculator .history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.depreciation-calculator .breakdown-item:last-child,
.depreciation-calculator .history-item:last-child {
  border-bottom: none;
}

.depreciation-calculator .history-item button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.depreciation-calculator .history-item button:hover {
  background: #0056b3;
}

.depreciation-calculator .info-tips {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.depreciation-calculator .info-tips h3 {
  color: #1976d2;
  margin-bottom: 15px;
}

.depreciation-calculator .tip-item {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: #343a40;
}

.depreciation-calculator .tip-item:before {
  content: "💡";
  position: absolute;
  left: 0;
}

.depreciation-calculator .disclaimer {
  margin-top: 20px;
  color: #495057;
  font-size: 0.9rem;
  text-align: center;
}

.depreciation-calculator #mobile-anchor-ad button {
  background: none;
  border: 0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .depreciation-calculator .input-section {
    grid-template-columns: 1fr;
  }
  
  .depreciation-calculator .result-grid {
    grid-template-columns: 1fr;
  }
  
  .depreciation-calculator {
    padding: 12px;
  }
  
  .depreciation-calculator .calculate-btn,
  .depreciation-calculator .reset-btn,
  .depreciation-calculator .share-btn,
  .depreciation-calculator .export-btn,
  .depreciation-calculator .csv-btn {
    width: 100%;
    margin: 10px 0;
  }
  
  .depreciation-calculator #mobile-anchor-ad {
    bottom: env(safe-area-inset-bottom);
  }
}