button {
    margin-top: 0;
}

.csv-container {
    width: 70%;
    margin: auto;
    margin-bottom: 5rem;
    background: white;
    padding: 0.75rem;
    color: #005689;
    border-style:none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    border-radius: 0.2rem;
}

.tabs-container {
    width: 80%;
}

.tabs-headers {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px; 
}

.tab-link {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    border: none;
    background: #f5f5f5;
    font-weight: bold;
}

.tab-link.active {
    background: #fff;
    border-bottom: 2px solid #f6c667;
    color: #007cb9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.csv-container * {
    box-sizing: border-box;
}


.tool-header {
    background: #007cb9;
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.2rem;
}

.tool-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.tool-description {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.4;
}

.tool-body {
    padding: 1rem;
    padding-top: 2rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.file-input-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-input-section label {
    font-weight: 600;
    color: #005689;
    font-size: 0.95rem;
}

.file-input-section input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed #ddd;
    border-radius: 0.2rem;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-section input[type="file"]:hover {
    border-color: #ff8c00;
    background: #fff5e6;
}

.file-input-section input[type="file"]:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.help-text {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}


.action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.merge-button {
    background: #005689;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.merge-button:hover {
    background: #004570;
}

.status-field {
    flex: 0.7;
    text-align: center;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-field .success {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-field .error {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-section {
    flex-shrink: 0;
}

.csv-container .download-button {
    background: #28a745;
    display: inline-block;
    color: white;
}


.csv-container .download-button:hover {
    background: #218838;
    text-decoration: none;
}



@media screen and (max-width: 600px) {
  .tabs-container {
    width: 100%;
  }

  .csv-container {
    width: 100%;
    padding: 0.5rem;
  }
  
  .csv-grid {
    grid-template-columns: 1fr; /* stack columns vertically */
    gap: 1rem;
  }
}