/* Data Section Styles */
/* Global body styles now in global.css */

#data-section {
    padding-top: 100px;
}

#data-providers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#data-providers-table th,
#data-providers-table td {
    text-align: left;
    vertical-align: top;
    max-height: 60px;
    overflow: hidden;
}

/* Description column max-width */
#data-providers-table td:nth-child(5) { /* Description column (5th because of status) */
    max-width: 300px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Specifications column max-width */
#data-providers-table td:nth-child(6) { /* Specifications column (6th because of status) */
    max-width: 250px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Website column */
#data-providers-table td:nth-child(7) { /* Website column */
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-cell {
    white-space: nowrap;
    width: 1%;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

table#data-providers-table .action-btn {
    padding: 5px;
    background: transparent;
    border: #f1f1f1 thin solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    height: 25px;
}

table#data-providers-table .action-btn i{
    margin: 0;
}

.action-btn:last-child {
    margin-right: 0;
}

.action-btn.edit {
    color: #007bff;
}

.action-btn.edit:hover {
    opacity: 0.7;
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn.delete:hover {
    opacity: 0.7;
}

/* Toggle Switch Styles (copied from global.css for consistency) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 0;
    margin-top: 4px;
    vertical-align: middle;
    cursor: pointer;
}

/* Toggle switch in form groups */
.form-group .toggle-switch {
    margin-top: 0;
    margin-bottom: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea; /* Primary blue */
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #data-section main {
        padding: 15px;
    }

    #data-section .table-container {
        margin-top: 15px;
    }

    #data-providers-table th,
    #data-providers-table td {
        padding: 12px 8px;
    }
}

