/* Data Management Section Styles */
.data-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.data-mgmt-card,
.credential-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.data-mgmt-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.data-mgmt-card h4,
.credential-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-mgmt-card h4 ion-icon,
.credential-card h4 ion-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.data-mgmt-card p,
.credential-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    min-height: 2.6rem; /* Match header description height across all cards */
    display: flex;
    align-items: flex-start;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-dark);
    padding: 0.35rem 0.4rem;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.checkbox-label span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.data-mgmt-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto; /* Push actions to the bottom of cards */
    padding-top: 1rem;
}

.data-mgmt-actions .btn {
    flex: 1;
}

/* Credential Management Styles */
.credential-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: end;
}

.credential-form .form-group {
    margin-bottom: 0;
}

.credential-form .btn {
    height: 40px;
}

/* File upload styling */
input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: #fff;
}